Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS keyboard with "Go" button instead of return

Is there a way to use the keyboard with "Go" key instead of the "Return" key like when you are accessing login fields in Safari? I'm guessing this should be something trivial but my searches aren't turning up anything. :(

Thanks in advance.

like image 361
Altealice Avatar asked Dec 20 '10 13:12

Altealice


1 Answers

For a UITextField or editable UITextView:

[myTextField setReturnKeyType:UIReturnKeyGo]; 

You can also configure this in Interface Builder, under Text Input Traits for your text field/view:

like image 102
BoltClock Avatar answered Sep 18 '22 14:09

BoltClock