具有“Go”的iOS键盘按钮而不是返回 [英] iOS keyboard with "Go" button instead of return
本文介绍了具有“Go”的iOS键盘按钮而不是返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法使用键盘与Go键,而不是返回键,就像当你访问Safari中的登录字段?我猜这应该是微不足道的,但我的搜索不是什么。 :
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. :(
提前感谢。
推荐答案
c $ c> UITextField 或可编辑 UITextView
:
For a UITextField
or editable UITextView
:
[myTextField setReturnKeyType:UIReturnKeyGo];
您还可以在Interface Builder中, strong>文本输入特征:
You can also configure this in Interface Builder, under Text Input Traits for your text field/view:
这篇关于具有“Go”的iOS键盘按钮而不是返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文