title: NSInternalInconsistencyException Invalid update: invalid number of sections 0 inserted 0 deleted
body: <p>My app is crashing on the line </p>
  
  <pre><code> [self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationFade]
  </code></pre>
  
  <p>'Invalid update: invalid number of sections.  The number of sections contained in the table view after the update <strong>(9)</strong> must be equal to the number of sections contained in the table view before the update (0), plus or minus the number of sections inserted or deleted <strong>(0 inserted, 0 deleted)</strong>.'</p>
  
  <p>My update is introducing 9 new sections which consist of 19 rows all up. The rows are distributed within those 9 sections. </p>
  
  <p>So from the error message, the number of section <strong>(9)</strong> is correct but the <strong>(0 inserted)</strong> not. </p>
  
  <p>Any ideas what I'm missing?
  I can see that my <code>indexPaths</code> that I'm building to insert in my <code>tableview</code> has the <strong>expected 9 sections</strong>.</p>
  
  <p>Thanks!</p>