Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.2, 2010-06-28
Added CFBundleIconFiles in Info.plist.
(Full Revision History)
iOS 4.0 SDK
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).