try finding cellForRowAtIndexPath in you: or wherever you use NSFetchedResultsController results. There, use the following code to find out how many results are available to you:
NSArray *sections = fetchController.sections; int someSection = 0; id <NSFetchedResultsSectionInfo> sectionInfo = [sections objectAtIndex:someSection]; numberOfObjects = [sectionInfo numberOfObjects];
and then go to the place where you are trying to get information, probably where you are calling:
[fetchedResultsController objectAtIndexPath:indexPath]
and see what you pass:
NSLog(@"row to be retrieved: %d", indexPath.row); [fetchedResultsController objectAtIndexPath:indexPath];
In the end, you can check
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
to find out how many rows are being returned.
source share