iOS keyboard with “Go” button instead of return

前端 未结 4 956
情话喂你
情话喂你 2020-12-08 00:02

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 t

相关标签:
4条回答
  • 2020-12-08 00:26

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

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

    0 讨论(0)
  • 2020-12-08 00:29

    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:

    0 讨论(0)
  • 2020-12-08 00:30
    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

    0 讨论(0)
  • 2020-12-08 00:39

    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
    
    0 讨论(0)
提交回复
热议问题