Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @implementation UITextField (NotPastable)
- - (BOOL)canPerformPasteAction:(SEL)action withSender:(id)sender
- {
- if (( action == @selector(paste:) || action == @selector(cut:) )
- &&
- nil != self.inputView)
- {
- return NO;
- }
- return [self canPerformPasteAction:action withSender:sender]; //calling Swizzeled method
- }
- @end
Add Comment
Please, Sign In to add comment