Skip to content

Instantly share code, notes, and snippets.

@Critter
Created June 28, 2013 14:09
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 Critter/5884943 to your computer and use it in GitHub Desktop.
Save Critter/5884943 to your computer and use it in GitHub Desktop.
Save localcontext using Magical Record
[localContext MR_saveToPersistentStoreWithCompletion:^(BOOL success, NSError *error) {
if (!success)
{
NSLog(@"Error: %@", [error description]);
}
else
{
NSLog(@"SAVED");
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment