I'm building a Storyboard where I have a Scroll View which contains a Table View. The first thing I did is to disable scrolling on the Table View, otherwise we'll get two nested scrollbars, erk ! But here is my problem, I want the Table View to have its height equals to the sum of its cells's height. ( Cells height are various, because they display comments ).
PS: For the dynamic cells height I used this :
self.commentsTableView.estimatedRowHeight = 90.0
self.commentsTableView.rowHeight = UITableViewAutomaticDimension
Shortly: I want a Table View to behave like a height variable list.
Aucun commentaire:
Enregistrer un commentaire