iOS keyboard with “Go” button instead of return

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

提交回复
热议问题