How to restart request using NSFetchedResultsController
I am finishing my Core Data tutorial and it suggests trying to convert it to NSFetchedResultsController. So I have this so that I can query existing data, but when I add a row at the beginning, tableView: cellForRowAtIndexPath calls NSFetchedResultsController.objectAtIndexPath, but it still returns the old null object instead of the new one. Is there something I need to do to clear this data?
a source to share
Have you set up your view controller as a getter delegate for the desired result and implemented the NSFetchedResultsControllerDelegate protocol ? If so, you won't need to fetch again, the selected results controller will call the delegate methods in response to the changes.
(Note, however, take a look at the NSFetchedResultsController documentation regarding implementing data source methods as a table.)
a source to share