Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created June 23, 2014 11:53
Show Gist options
  • Select an option

  • Save mikeabdullah/1098b19db126922dd2ff to your computer and use it in GitHub Desktop.

Select an option

Save mikeabdullah/1098b19db126922dd2ff to your computer and use it in GitHub Desktop.
Apple's default implementation for numberOfRowsInSection
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
id <NSFetchedResultsSectionInfo> sectionInfo = [self.fetchedResultsController sections][section];
return [sectionInfo numberOfObjects];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment