2015年11月4日

禁用UITextField复制粘贴等方法

摘要: 要实现此功能只需创建一个继承自UITextField的子类,重写以下方法即可。1 - (BOOL)canPerformAction:(SEL)action withSender:(id)sender{2 if (action == @selector(paste:) || //粘贴... 阅读全文

posted @ 2015-11-04 13:10 陌上红尘 阅读(382) 评论(0) 推荐(0) 编辑

导航