1、默认样式 case `default` = 0 // Default type for the current input method. 2、ASCII 码键盘 case asciiCapable = 1 // Displays a keyboard which can enter ASCII characters 3、数字和标点符号 case numbersAndPu
关于 UITextField 的键盘是可以自定义的,正好在一个代码用这个,就总结一下。 在 UITextField 中有一个 keyboardType 属性,它的类型是一个枚举值,下面就是枚举值和对应的键盘样式 UIKeyboardTypeDefault // Default type for the current input method. UIKeyboardTypeASCIICapa