title: Why is an error occurring when a UITableView row is deleted?
body: <p>I am trying to implement a standard delete of a UITableViewCell using the standard edit control style as described in the Apple Table View Programming Guide. When the following code executes in the commitEditingStyle method</p>
  
  <pre><code>[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
  </code></pre>
  
  <p>I get the following error message</p>
  
  <p><em>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 2.  The number of rows contained in an existing section after the update (1) must be equal to the number of rows contained in that section before the update (1), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).</em></p>