How to get height of UITableView when cells are dynamically sized? : <p>I have a UITableView with cells that are dynamically sized. That means I have set:</p>

<pre><code>tableView.estimatedRowHeight = 50.0
tableView.rowHeight = UITableViewAutomaticDimension
</code></pre>

<p>Now I want to get the height of the whole table view. I tried getting it through <code>tableView.contentSize.height</code> but that only returns the estimated row height, and not the actual dynamic height of the table view.</p>

<p>How do I get the dynamic height of the whole table view?</p>
