iOS keyboard with “Go” button instead of return

前端 未结 4 969
情话喂你
情话喂你 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: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:

提交回复
热议问题