我有一个要在 UITableViewController 内编辑的 UITableView。这段代码来自我调用来编辑 tableView 的方法。
[self.tableView beginUpdates];
[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject: path] withRowAnimation:UITableViewRowAnimationNone];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject: path] withRowAnimation:UITableViewRowAnimationNone];
NSMutableArray *things = [[self.fetchedResultsController fetchedObjects] mutableCopy];
self.storedCell = [things objectAtIndex: path.row];
[things removeObjectAtIndex: path.row];
for ( int i = 0; i < [things count]; i++) {
Task *mo = (Task *)[things objectAtIndex: i];
[mo setValue:[NSNumber numberWithInt: i] forKey:@"displayOrder"];
}
[things release]; things = nil;
self.newPath = path;
[self.managedObjectContext save: nil];
[self.tableView endUpdates];
这是抛出的错误:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempt to create two animations for cell'
关于我做错了什么的任何想法?