是否有某种方法可以让 UIKeyboardTypeNamePhonePad 类型的键盘以电话号码键盘模式而不是字母模式启动?键盘可以很好地满足我的需要,但我希望它以“其他”模式启动,因为这更有可能是用户输入的内容。
最佳答案
我相信,通过将 keyboardType
属性设置为 UIKeyboardTypeNumbersAndPunctuation
,您将默认使用数字和标点符号 View ,同时仍然可以选择返回“ABC”看法。 Apple 的相关文档:http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html
相关问题:how to show numbers in the default keyboard initially for UITextField
关于iphone - UIKeyboardTypeNamePhonePad 类型的键盘可以在电话模式下启动吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2489939/