rollback() not works coredata

Solution:

In coredata if you tried rollback then the current context will be rolled back.But if you tried with global context it will never works.So you have try that in cancel you will rollback after comeback to that screen you have to do another rollback in viewDidload.

Then it will works good

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