title: NSInternalInconsistencyException', reason: 'attempt to insert row 0 into section 0, but there are only 0 rows in section 0 after the update'
body: <p>I am using UITableViewController and getting this error while updating tableView.  Below is my code: </p>
  
  <p>This occurs when i do a click event:</p>
  
  <pre><code>[timeZoneNames insertObject:@"HELLO" atIndex:0];  
  [self.tableView beginUpdates];   
  NSArray *insertIndexPaths = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]];
  [self.tableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationTop];
  [self.tableView endUpdates];
  </code></pre>
  
  <p>I tried looking for apple documentation but that didnt helped.</p>
  
  <p>Thanks, 
  Aby</p>