Skip to content

Commit

Permalink
Update frcd.m
Browse files Browse the repository at this point in the history
replace indexPath with newIndexPath in case NSFetchedResultsChangeMove
  • Loading branch information
Xummer committed Jun 4, 2014
1 parent 523b018 commit 243d474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frcd.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ - (void)controller:(NSFetchedResultsController *)controller
break;
case NSFetchedResultsChangeMove:
[self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
[self.tableView insertRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
[self.tableView insertRowsAtIndexPaths:@[newIndexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
break;
}
}

- (void)controllerDidChangeContent:(NSFetchedResultsController *)controller {
[self.tableView endUpdates];
}
}

0 comments on commit 243d474

Please sign in to comment.