Change the return key to a key made on the iPhone keyboard (UITextView)

I am working on an application with a UITextView. I want to replace a key returnon a keyboard with a key Done. I found code for it, but then it is for a UITextField, not a UITextView.

+5
source share
1 answer

You can change the return key using the property returnKeyType

UITextView *textview = [[UITextView alloc] initWithFrame:CGRectMake(0.f, 0.f, 120.f, 40.f)];

textview.returnKeyType = UIReturnKeyDone;
[self.view addSubview:textview];

Regards,
KL94

+13
source

All Articles