本文主要是介绍uitextfield 键盘类型_【改】iOS学习之键盘类型UIKeyboardType,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
关于 UITextField 的键盘是可以自定义的,正好在一个代码用这个,就总结一下。
在 UITextField 中有一个 keyboardType 属性,它的类型是一个枚举值,下面就是枚举值和对应的键盘样式
UIKeyboardTypeDefault // Default type for the current input method.
UIKeyboardTypeASCIICapable // Displays a keyboard which can enter ASCII characters, non-ASCII keyboards remain active
UIKeyboardTypeNumbersAndPunctuation // Numbers and assorted punctuation.
UIKeyboardTypeURL // A type optimized for URL ent
这篇关于uitextfield 键盘类型_【改】iOS学习之键盘类型UIKeyboardType的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!