I have update a NSModelObject and saved using the following code, the changes are saved and updated in app.
do { try managedObjectContext.save() } catch { print("Could not save") }
- But when I kill the app and re-launch it the updated changes are lost.
Note:
- I am using Restkit for mapping those data in db
- I also check "saveContext()" in AppDelegate which is called from "applicationWillTerminate"
What am I doing it wrong ? Why the contents are not saved in core data permanently ?