I am using the selected result controller, which seems to want to customize using sections in my UITableView. Well, in this case, I do not want to use partitions. Which is easy enough to set the value for numberOfSectionsInTableView: to 1. But now I'm not sure how to get numberOfRowsInSection: to return all cells in one section.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
id <NSFetchedResultsSectionInfo> sectionInfo = [[fetchedResultsController sections] objectAtIndex:section];
return [sectionInfo numberOfObjects];
}
How can I get this method to return all cells since I want to use only 1 section?
source
share