标签:111
代理方法
#pragma mark UITextViewDelegate
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
if ([@"\n" isEqualToString:text] == YES)
{
[textView resignFirstResponder];
return NO;
}
return YES;
}
本文出自 “IOS开发” 博客,请务必保留此出处http://5828666.blog.51cto.com/5818666/1563982
标签:111
原文地址:http://5828666.blog.51cto.com/5818666/1563982