qwertydev qwertydev - 9 months ago 30
Swift Question

Dynamic height of UITableview Issue

I have set

self.tableView.estimatedRowHeight = 88.0
self.tableView.rowHeight = UITableViewAutomaticDimension

Also I have done numberOfLines of
to zero.
I haven't given any fixed height/width constraint in IB.
Still my UITableviewCell height is not expanded accordingly.

Please suggest me what to do.


Check whether you are explicitly defining tableView:heightForRowAtIndexPath method. If so remove that method or if you want to use it because of several cells existing there , you can return UITableViewAutomaticDimension for that particular cell height.