Search code examples
iphonecopy-pasteundo-redo

iPhone redo a pressed button in apple manner


As iPhone has a copy past feature for text, with a nice redo handler by shaking the phone, Im wondering whether I can use this feature to redo a button touch action who was touched mistakenly by the user.

Any idea?

Markus


Solution

  • Yes, you can. In short, you will want to use NSUndoManager or Core Data's undo capabilities to manage this.

    For a more detailed description of this process, see my answer here.