title: UITableView row insertion crash
body: <p>I'm trying to add Row/cell in to tableview, but before [Table  endUpdates]; ... app crashes with error :</p>
  
  <p><strong>* Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-2372/UITableView.m:909
  *</strong> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert row 33 into section 0, but there are only 33 rows in section 0 after the update'</p>
  
  <pre><code>-(IBAction)createTask
  {
      Data  *sharedManager = [Data sharedManager]; //singleton class
      [Table  beginUpdates];
  
      [Table insertRowsAtIndexPaths:[NSArray arrayWithObject:
                                            [NSIndexPath indexPathForItem: 
                                                  [sharedManager._NAME count] inSection:0]] 
                                            withRowAnimation:UITableViewRowAnimationNone];
  
       // sharedManager._NAME is NSMutableArray wich consists names for cells
      [Task_handler createTask]; // adds objects to NSMutableArray's 
                                 // (like names for cels and so on)
  
      [Table  endUpdates];
      [Table reloadData];
  
  }
  
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
      Data  *sharedManager = [Data sharedManager];
      NSLog(@"numberOfRowsInSection : %d",[sharedManager._NAME count]);
  
      return [sharedManager._NAME count];
  }
  </code></pre>
  
  <p>Thank you in advance.</p>