In a textView, when we click on it,
A keyboard appears,
but when user press return key, (normally creates a new line in textView)
keyboard should go down.
How?
In a textView, when we click on it,
A keyboard appears,
but when user press return key, (normally creates a new line in textView)
keyboard should go down.
How?
Ok i have found the correct answer by the help of @jordan - link help.
Implement following code to your view controller .m file & .h file add delegate
-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { if([text isEqualToString:@"\n"]) [textView resignFirstResponder]; return YES; }
Now goto interface builder, select your textview & set return key type done.
Every thing works fine & great.
I have implemented it.