I have got TableView in the MainstoryBoard and the number of rows is random every time. I want the height of the whole TableView to be fl
TableView
MainstoryBoard
nothing worked here is the solution i ended up using which gives accurate height.
extension UITableView { var contentSizeHeight: CGFloat { var height = CGFloat(0) for section in 0..
Usage:
tableView.contentSizeHeight
will give you the actual calculated height of your table view content.