ios - UITableViewCell containing UIStackViews use lots of memory -


usually, app uses around 50mb of ram @ most, noticed ram usage on 100mb.

this happens on uitableviewcontroller. have prototype cell uiimageview, , beside it, uistackview contains 2 labels, , uistackview containing uiimageview , uilabel.

after investigating, found uitableviewcell, , more when have uistackview within it. when load more cells, memory goes higher. i'm not doing modification cell in cellforrowat:, , i've tested separate cell make sure, , had same issue.

instruments shows there no memory leaks.

i'm using xcode 9 beta 5 , swift 4.

override func tableview(_ tableview: uitableview, cellforrowat indexpath: indexpath) -> uitableviewcell {     let cell = tableview.dequeuereusablecell(withidentifier: "mycell", for: indexpath)      return cell } 

it seems if issue code using dynamic cell heights in uitableview. so, has been fixed.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -