1 UIKeyboardTypeDefault, // Default type for the current input method.

2 UIKeyboardTypeASCIICapable, // Displays a keyboard which can enter ASCII characters

3 UIKeyboardTypeNumbersAndPunctuation, // Numbers and assorted punctuation.

4 UIKeyboardTypeURL, // A type optimized for URL entry (shows . / .com prominently).

5 UIKeyboardTypeNumberPad, // A number pad with locale-appropriate digits (0-9, ۰-۹, ०-९, etc.). Suitable for PIN entry.
6 UIKeyboardTypePhonePad, // A phone pad (1-9, *, 0, #, with letters under the numbers).

7 UIKeyboardTypeNamePhonePad, // A type optimized for entering a person's name or phone number.

8 UIKeyboardTypeEmailAddress, // A type optimized for multiple email address entry (shows space @ . prominently).

9 UIKeyboardTypeDecimalPad API_AVAILABLE(ios(4.1)), // A number pad with a decimal point.

10 UIKeyboardTypeTwitter API_AVAILABLE(ios(5.0)), // A type optimized for twitter text entry (easy access to @ #)

11 UIKeyboardTypeWebSearch API_AVAILABLE(ios(7.0)), // A default keyboard type with URL-oriented addition (shows space . prominently).

12 UIKeyboardTypeASCIICapableNumberPad API_AVAILABLE(ios(10.0)), // A number pad (0-9) that will always be ASCII digits.
!

13 UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated

网友评论