带有“Go"功能的 iOS 键盘按钮而不是返回 [英] iOS keyboard with "Go" button instead of return

查看:17
本文介绍了带有“Go"功能的 iOS 键盘按钮而不是返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法像在 Safari 中访问登录字段一样使用带有Go"键而不是Return"键的键盘?我猜这应该是微不足道的,但我的搜索没有找到任何东西.:(

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. :(

提前致谢.

推荐答案

对于 UITextField 或可编辑的 UITextView:

For a UITextField or editable UITextView:

[myTextField setReturnKeyType:UIReturnKeyGo];

您也可以在 Interface Builder 中为您的文本字段/视图在 Text Input Traits 下进行配置:

You can also configure this in Interface Builder, under Text Input Traits for your text field/view:

这篇关于带有“Go"功能的 iOS 键盘按钮而不是返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆