title: Assertion failure error when trying to delete a row from a UITableView
body: <p>Sometimes I get this error when trying to delelte a row from the UITableView:</p>
  
  <blockquote>
    <p>Assertion failure in -[UITableView _endCellAnimationsWithContext:]</p>
  </blockquote>
  
  <p>and other times it deletes the row with not problems.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>- (void) tableView:(UITableView *)tableView
  commitEditingStyle:(UITableViewCellEditingStyle)editingStyle 
   forRowAtIndexPath:(NSIndexPath *)indexPath
  {
      if (editingStyle == UITableViewCellEditingStyleDelete)
      {
       [[self displayedObjects] removeObjectAtIndex:[indexPath row]];
  
  
       // Animate deletion
       NSArray *indexPaths = [NSArray arrayWithObject:indexPath];
       [[self tableView] deleteRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationFade];
  
      }
  }
  </code></pre>