标签:
新建一个类继承自UITextFiled
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender { if (action == @selector(paste:)) { return NO; } return YES; }
禁止UITextField的粘贴功能
原文地址:http://www.cnblogs.com/liaods/p/4922710.html