Skip to content

Instantly share code, notes, and snippets.

@fzf
Last active December 11, 2015 08:09
Show Gist options
  • Save fzf/4571464 to your computer and use it in GitHub Desktop.
Save fzf/4571464 to your computer and use it in GitHub Desktop.
- (NSFetchedResultsController *)fetchedResultsController {
if (_fetchedResultsController != nil)
{
return _fetchedResultsController;
}
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"ANY checkins.place = %@", self.place];
return [User MR_fetchAllGroupedBy:nil withPredicate:predicate sortedBy:nil ascending:TRUE];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment