- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text
{
if([text isEqualToString:@"\n"]){
[self.textView endEditing:YES];
[self whenTheTextViewEndEditing];
return NO;
}
}
时间: 2024-10-18 15:52:29