Monday, February 28, 2011

How hide keyboard on return key for UITextView

How hide keyboard on return key for UITextView

by alex 14. May 2009 14:35
-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
if([text isEqualToString:@"\n"])
{
[textView resignFirstResponder];
return NO;
}
return YES;
}

No comments:

Post a Comment