Reputation: 767
for labels, cells will automatically adjust its height after you have set the constraints and
self.tableView.rowHeight = UITableViewAutomaticDimension;
self.tableView.estimatedRowHeight = 60.0
but i have a static table, and in one of the cells, i have an inner table view
cell #1 with the name label will expand when the text is long enough. but cell #5 doesn't expand to the full height of the inner table.
any way i can get auto layout to work with tables?
Upvotes: 1
Views: 493
Reputation: 674
There is a heightForRowAtIndexPath delegate protocol you can invoke to size the outer tableView's rows. I'm not sure how you are sizing the inner table view, so I can't be more specific in how to calculate the size for the row in question.
Upvotes: -1