I have a UITableView and I\'d like to change its height programmatically depending on the number of cells contained in it.
UITableView
Can you help me?
You can observe tableView.contentSize changes and bind the value to the frame, keep in mind you might run into memory issues since table view won't recycle cells
tableView.contentSize
frame