CopyPasteTile

Last Revision:
Version 1.2, 2010-06-28
Added CFBundleIconFiles in Info.plist.
(Full Revision History)
Build Requirements:
iOS 4.0 SDK
Runtime Requirements:
iPhone OS 3.2 or later

CopyPasteTile demonstrates how to implement the copy-cut-paste feature introduced in iPhone OS 3.0. The sample:

* Shows how to use the UIMenuController class to position and display the editing menu (the menu with the Copy, Cut, Paste, and other commands).

* Illustrates how you might implement the canPerformAction:withSender: method of UIResponder to validate the menu commands for the current context.

* Shows how to respond when the user taps a menu command by reading and writing data to a pasteboard, (an instance of the UIPasteboard class).