Rollback is not working for coreData entities

Solution:

You could simply refetch the coredata entities for unsaved changes.

But you can restart the app the unsaved changes will be discarded.So you must have to save the changes.

But you changed in persistant store with current context then the changes will be available in before saving.You can try the rollback context to discard the last changes.

Also undomanager available in coredata.You could try that to start the changes and rollback to the particular point....

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift