iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 1.0

Posted: 2009-03-16

Build Requirements: Xcode 3.1 or later, iPhone OS 3.0 or later.

Runtime Requirements: iPhone OS 3.0 or later.

View Source Code:

Download Sample Code (“SimpleUndo.zip”, 34.5K)



Description

The root view controller displays information (title, author, and copyright date) about a book. The user can edit this information by tapping Edit in the navigation bar. When editing starts, the root view controller creates an undo manager to record changes. The undo manager supports up to three levels of undo and redo. When the user taps Done, changes are considered to be committed and the undo manager is disposed of.

Document Revision History

Date Notes
2009-03-16Illustrates how to use undo on iPhone.
Did this document help you? Yes It's good, but... Not helpful...