This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create a subclass of `UITextField` or `UITextView`, | |
| // and override the `canPerformAction:withSender:` method like following: | |
| - (BOOL)canPerformAction:(SEL)action withSender:(id)sender | |
| { | |
| if (action == @selector(copy:)) | |
| return NO; | |
| return [super canPerformAction:action withSender:sender]; | |
| } |
NewerOlder