1、默认样式

case `default` = 0 // Default type for the current input method.

【iOS】UITextField 的 UIKeyboardType_ui

2、ASCII 码键盘

case asciiCapable = 1 // Displays a keyboard which can enter ASCII characters

【iOS】UITextField 的 UIKeyboardType_git_02

3、数字和标点符号

case numbersAndPunctuation = 2 // Numbers and assorted punctuation.

【iOS】UITextField 的 UIKeyboardType_ios_03

4、URL键盘

case URL = 3 // A type optimized for URL entry (shows . / .com prominently).

【iOS】UITextField 的 UIKeyboardType_ios_04

5、数字键盘

case numberPad = 4 // A number pad with locale-appropriate digits (0-9, ۰-۹, ०-९, etc.). Suitable for PIN entry.

【iOS】UITextField 的 UIKeyboardType_ios_05

6、电话号码键盘

case phonePad = 5 // A phone pad (1-9, *, 0, #, with letters under the numbers).

【iOS】UITextField 的 UIKeyboardType_git_06

7、姓名电话号码键盘

case namePhonePad = 6 // A type optimized for entering a person's name or phone number.

【iOS】UITextField 的 UIKeyboardType_git_07

8、电子邮件键盘

case emailAddress = 7 // A type optimized for multiple email address entry (shows space @ . prominently).

【iOS】UITextField 的 UIKeyboardType_ios_08

9、带小数点的数字键盘

@available(iOS 4.1, *)
case decimalPad = 8 // A number pad with a decimal point.

【iOS】UITextField 的 UIKeyboardType_ui_09

10、Twitter 键盘

@available(iOS 5.0, *)
case twitter = 9 // A type optimized for twitter text entry (easy access to @ #)

【iOS】UITextField 的 UIKeyboardType_ios_10

11、Web 键盘

相对于 URL 键盘,突出空格

@available(iOS 7.0, *)
case webSearch = 10 // A default keyboard type with URL-oriented addition (shows space . prominently).

【iOS】UITextField 的 UIKeyboardType_twitter_11

12、ASCII 数字键盘

@available(iOS 10.0, *)
case asciiCapableNumberPad = 11 // A number pad (0-9) that will always be ASCII digits.

【iOS】UITextField 的 UIKeyboardType_ios_12