iOS文本禁掉系统自带的复制,粘贴等功能
举个例子 -- textView
1.textView.editable = YES;
2.textView的代理方法
-(BOOL)textViewShouldBeginEditing:(UITextView *)textView{
return NO;
}
举个例子 -- textView
1.textView.editable = YES;
2.textView的代理方法
-(BOOL)textViewShouldBeginEditing:(UITextView *)textView{
return NO;
}
本文标题:iOS文本禁掉系统自带的复制,粘贴等功能
本文链接:https://www.haomeiwen.com/subject/hkgjjttx.html
网友评论