TextView设置成仅仅读
TextView设置成仅仅读
方法一:代理
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView
{
return NO;
}
方法二:设置属性
textView.editable = NO;
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView
{
return NO;
}
textView.editable = NO;