When you are developing using core data you use always a code snippet like
NSError *error = nil; if (![context save:&error]) { // Replace this implementation with code to handle the error appropriately. // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. NSLog(@"Unresolved error %@, %@", error, [error userInfo]); abort(); }
Hmmm, and how we could replace this implementation with code to handle the error appropriately is then next question.
Mr fabian789 from stackoverflow.com has proposed a solution that I like very much. Explore it!