- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text
{
if([text isEqualToString:@"\n"]){
[self.textView endEditing:YES];
[self whenTheTextViewEndEditing];
return NO;
}
}
2024-02-10 21:41:58
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text
{
if([text isEqualToString:@"\n"]){
[self.textView endEditing:YES];
[self whenTheTextViewEndEditing];
return NO;
}
}