Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created June 23, 2014 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/1098b19db126922dd2ff to your computer and use it in GitHub Desktop.
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