Cartography icon indicating copy to clipboard operation
Cartography copied to clipboard

Cell dynamic height

Open caohrong opened this issue 9 years ago • 1 comments

I use Cartography to layout my cell, But how can I get cell height in TableViewController? Thank you!

caohrong avatar Jan 05 '16 10:01 caohrong

@caohrong If you need to get the height of one specific cell, than you might need to create that cell and query it's height, given the current constraints.

If you are not sure how to implement the delegate method tableView:heightForRowAtIndexPath: then you should read the docs, specially the docs for tableView:estimatedHeightForRowAtIndexPath:

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewDelegate_Protocol/

vfn avatar Jan 05 '16 22:01 vfn