In my app I'm following CoreDataBooks for implementing Core data. I have a list of items, when user selects any item, a detail screen comes up with edit option. The details screen is having instance of ManagedObjectContext which is child of ManagedObjectContext instance in list. Now when I edits something on details screen I'm updating values in entity taken from child MOC instance. On cancel when I call rollback child MOC, It does nothing. Not sure why rollback is not restoring values to previous one which were last saved.
- (void)cancelAction:(id)sender
{
_isEditing = NO;
[_managedObjectContext rollback];
[self configureNavBar];
[table reloadData];
}