Created
April 8, 2016 14:52
-
-
Save juliantejera/e8e681ed9b539bc8f0d1ddd608ef97bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let context = CoreDataManager.sharedInstance.managedObjectContext | |
let product = Product(context: context) | |
// modificas el producto como deseas | |
func viewWillDisappear(animated: Bool) { | |
super.viewWillDisappear(animated) | |
CoreDataManager.sharedInstance.managedObjectContext.rollback() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment