I would like to set the UITableView to match the height for all the contents in the table view.
This is my storyboard
The problem with this is the t
Update Swift 4 this code working be good
self.scrollView.layoutIfNeeded() self.view.layoutIfNeeded() self.tableViewHeightConstraint.constant = CGFloat(self.tableView.contentSize.height)