Uitableview Inside Uitableviewcell with Dynamic Height

UITableView inside UITableViewCell with dynamic height

I added override for property in my table view:

override var intrinsicContentSize: CGSize {
self.layoutIfNeeded()
return self.contentSize
}

Full code for my table in table can you find on my GitHub

How to set automatic height of tableView inside tableview Cell?

You need to use intrinsicContentSize variable of a UITableView.

Create a subclass for child tableView and override
intrinsicContentSize.

Dynamic row heights of a UITableView inside a UITableViewCell



Related Topics



Leave a reply



Submit