I have a UITableView with dynamic cells. I would like to disable scrolling and show all rows. My goal is to have a scroll view that contains a table view and additional views, but I want the parent scroll view to get its content size from all of its children, including a UITableView.
This is what I have tried so far;
self.tableView.scrollEnabled = false
var frame = self.tableView.frame
frame.size.height = self.tableView.contentSize.height
self.tableView.frame = frame
However, I can turn off scrolling, but not all lines are displayed.
I cannot find a way to make the UITableView display all its cells, is this possible? Is there an alternative way that I should get closer to design?
Kevin source
share