textView.layer.borderColor = [UIColorgrayColor].CGColor; textView.layer.borderWidth =1.0; textView.layer.cornerRadius =5.0; textView不可编辑 textview.editable = no; - (BOOL)textViewShouldBeginEditing:(UITextView *)textView{ return NO; }