Closed thomkel closed 9 years ago
Remember to set the constraints on the cell using autolayout. Also, set the UILabel number of lines to be 0 (unlimited lines). The default is 1 line.
I was able to get it working using this guide: http://www.raywenderlich.com/73602/dynamic-table-view-cell-height-auto-layout
I'm not sure what I'm doing wrong, but I can't get the cells of the Master View to resize.
I added the following to viewDidLoad:
self.tableView.estimatedRowHeight = 150.0; self.tableView.rowHeight = UITableViewAutomaticDimension;
And this is the relevant code in cellForRowAtIndexPath
// set label text values
I'm sure I'm missing something obvious here.