¡@

Home 

2014/10/15 ¤U¤È 10:04:17

iphone Programming Glossary: authorname

undo all changes made in the child view controller

http://stackoverflow.com/questions/10443754/undo-all-changes-made-in-the-child-view-controller

all changes made in the child view controller There are two entities Author and Book. Author has an attribute authorName and a to many relationships books. Book has several attributes and a relationship author. There is a view controller VCAuthor.. release self.book.managedObjectContext.undoManager beginUndoGrouping void cancelAction id sender NSLog @ @ self.author.authorName self.book.managedObjectContext.undoManager endUndoGrouping self.book.managedObjectContext.undoManager undoNestedGroup self.book.managedObjectContext.undoManager.. undoNestedGroup self.book.managedObjectContext.undoManager nil NSLog @ @ self.author.authorName self dismissModalViewControllerAnimated YES the cancelAction is linked to an cancel button on the VCBook which used to undo..