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

Convert NsNumber, NSDate to String in iOS Swift

store cgpoint in userdefaults iOS swift