Skip to content

Instantly share code, notes, and snippets.

@Critter
Created June 28, 2013 14:09
Show Gist options
  • 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