Created
August 31, 2014 13:28
-
-
Save nicktoumpelis/af6d6f57bc1cb49baa63 to your computer and use it in GitHub Desktop.
Core Data: Execute a fetch request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSManagedObjectContext *managedObjectContext = ...; | |
NSFetchRequest *fetchRequest = ...; | |
NSError *error = nil; | |
NSArray *results = [managedObjectContext executeFetchRequest:request error:&error]; | |
if (error) { | |
NSLog(@"Error: %@\n%@", [error localizedDescription], [error userInfo]); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment