iOS keyboard with "Go" button instead of return

IphoneObjective CIosIpadCocoa Touch

Iphone Problem Overview


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.

Iphone Solutions


Solution 1 - Iphone

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:

Solution 2 - Iphone

In Xamarin.iOS or Monotouch is:

myTextField.ReturnKeyType = UIReturnKeyType.Go;

Possible values are:

   Default
   Go
   Google
   Join
   Next
   Route
   Search
   Send
   Yahoo
   Done
   EmergencyCall
   Continue

Solution 3 - Iphone

myTextField.returnKeyType =  UIReturnKeyType.Go

Other options for return key name can be found at: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/#//apple_ref/c/tdef/UIReturnKeyType

Solution 4 - Iphone

You can use this simple way: [textField setReturnKeyType:UIReturnKeyGo]; instead of "Add" button.

Other, you create a programmatically keyboard with buttons which you want.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAltealiceView Question on Stackoverflow
Solution 1 - IphoneBoltClockView Answer on Stackoverflow
Solution 2 - IphoneDaniele D.View Answer on Stackoverflow
Solution 3 - IphonerscView Answer on Stackoverflow
Solution 4 - IphoneAmyNguyenView Answer on Stackoverflow