有没有办法让 UIKeyboardTypeNamePhonePad 类型的键盘以电话号码键盘模式而不是字母模式启动?键盘可以很好地满足我的需要,但我希望它以“其他”模式启动,因为这更有可能是用户输入的内容。
我相信通过设置keyboardType
财产给UIKeyboardTypeNumbersAndPunctuation
,您将默认使用数字和标点符号视图,同时仍然可以选择返回“ABC”视图。苹果公司的相关文档:http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html
相关问题:如何最初在 UITextField 的默认键盘中显示数字 https://stackoverflow.com/questions/6234698/how-to-show-numbers-in-the-default-keyboard-initially-for-uitextfield
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)