Likewise, here’s how we return the number of rows using a fetched results controller – as provided by the Master / Detail template:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController sections]objectAtIndex:section]; return [sectionInfo numberOfObjects]; }