I have a UITableView
(let's call it tbl_A) inside a table view cell whose height is dynamic and set by UITableViewAutomaticDimension
. tbl_A's cell height is also dynamic, and I know tbl_A's data won't be too much. So I want tbl_A to be scroll disabled and its frame.size equals its content size. I tried to set tbl_A's frame.size.height = tbl_A.contentSize.height, unfortunately, the height is wrong.
By the way, I don't have to use UITableView
to accomplish this task. I just want to a way to display all data. Any suggestions?