Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danielctull/730631 to your computer and use it in GitHub Desktop.
Save danielctull/730631 to your computer and use it in GitHub Desktop.
[managedObjectContext dct_asynchronousFetchRequest:fetchRequest
withCallbackBlock:^(NSArray *fetchedObjects, NSError *error) {
// Do something with the fetched objects in this callback block.
NSLog(@"fetchedObjects: %@", fetchedObjects);
NSLog(@"error: %@", error);
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment