Retired Document
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.
CopyPasteTile
Last Revision: | |
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).
Copyright © 2010 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2010-06-28