title: iOS 8 Auto cell height - Can't scroll to last row
body: <p>I am using iOS 8 new self-sizing cells. Visually it works good - each cell gets its right size. However, if I try to <strong>scroll to the last row</strong>, the table view doesn't seem to know its right size. Is this a bug or is there a fix for that?</p>
  
  <h2>Here's how to recreate the problem:</h2>
  
  <p>Using this project - <a href="https://github.com/smileyborg/TableViewCellWithAutoLayoutiOS8" rel="noreferrer">TableViewCellWithAutoLayoutiOS8</a> (referenced from <a href="https://stackoverflow.com/a/18746930/442896">this SO answer</a>), I got the auto-resizing cells as expected. </p>
  
  <p>However, if I am calling the <em>scrollToRowAtIndexPath</em> function, like this:</p>
  
  <pre><code>tableView.scrollToRowAtIndexPath(NSIndexPath(forRow: model.dataArray.count - 1, inSection: 0), atScrollPosition: .Bottom, animated: true)
  </code></pre>
  
  <p>I <strong>do not get to the last row</strong> - It only gets me around halfway there. </p>
  
  <p>Even by trying to use a lower level function like this:</p>
  
  <pre><code>tableView.setContentOffset(CGPointMake(0, tableView.contentSize.height - tableView.frame.size.height), animated: true)
  </code></pre>
  
  <p>The result is not as expected, it won't get to the end. If I click it a lot of times or wait a few moments, eventually it will get to the right place. It seems the tableView.contentSize.height is not set correctly, so the iOS "doesn't know" where that last cell is.</p>
  
  <p>Would appreciate any help.</p>
  
  <p>Thanks</p>