Skip to content

Instantly share code, notes, and snippets.

@pardel
Created September 8, 2014 09:15
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 pardel/3ffe5a94b764cbd813e9 to your computer and use it in GitHub Desktop.
Save pardel/3ffe5a94b764cbd813e9 to your computer and use it in GitHub Desktop.
saveContext extract
var error: NSError? = nil
if self.managedObjectContext?.save(&error) == true {
return
}
NSLog("Unresolved error \(error), \(error!.userInfo)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment