ios - AutoLayout set height of UITableViewCell based on children -


i trying set height of uitableviewcell based on children's constraints. basically, here's layout:

uitableview > uitableviewcell > nesteduiview (with computable height)

i started setting top, bottom, left, , right constraints of nesteduiview 10px off uitableviewcell. then, tried adding height constraint (which in head force uitableviewcell expand fit content. of course though, causes constraint conflict , fails.

this seems should trivial, doing wrong?

add viewdidload method

self.tableview.rowheight = uitableviewautomaticdimension; self.tableview.estimatedrowheight = 42; 

this tell table use cell constraint's determine height.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -