ios - Autosizing UITableViewCell without using estimatedRowHeight and avoiding "UIView-Encapsulated-Layout-Height" errors -


i have problem need use autosizing cells can't use uitableview's estimatedrowheight property because using kind of "disables" cell's layout until cell reused. more information problem here: uitableviewcell layout not updating until cell reused

trying use autosizing cells without estimatedrowheight leads table view putting height constraint on cell's content view (height equals 43.5 point). in error logs constraint famous

'uiview-encapsulated-layout-height' uitableviewcellcontentview:0x7fd63d508490.height == 43.5   (active) 

and because cell's height not equal 43.5 points, auto layout decides height constraint more important cell's layout , fits cell content in 43.5 points.

so can't use estimatedrowheight because breaks auto layout, without layout gets broken.

my question is: how can safely deprioritize uiview-encapsulated-layout-height constraint? there way can autosizing cells without using estimatedrowheight?


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -