1 UIKeyboardTypeDefault, // Default type for the current input method.
![](https://img.haomeiwen.com/i2606515/06deef3ea2d9aac9.png)
2 UIKeyboardTypeASCIICapable, // Displays a keyboard which can enter ASCII characters
![](https://img.haomeiwen.com/i2606515/187bee9df9452a1d.png)
3 UIKeyboardTypeNumbersAndPunctuation, // Numbers and assorted punctuation.
![](https://img.haomeiwen.com/i2606515/a5af4fe56470fe3e.png)
4 UIKeyboardTypeURL, // A type optimized for URL entry (shows . / .com prominently).
![](https://img.haomeiwen.com/i2606515/d69ac2f27f23a412.png)
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).
![](https://img.haomeiwen.com/i2606515/ce28f5ad7d322485.png)
7 UIKeyboardTypeNamePhonePad, // A type optimized for entering a person's name or phone number.
![](https://img.haomeiwen.com/i2606515/6f5cdbb5e2470f5a.png)
8 UIKeyboardTypeEmailAddress, // A type optimized for multiple email address entry (shows space @ . prominently).
![](https://img.haomeiwen.com/i2606515/874bc8913d77a422.png)
9 UIKeyboardTypeDecimalPad API_AVAILABLE(ios(4.1)), // A number pad with a decimal point.
![](https://img.haomeiwen.com/i2606515/f4adc42391384ca7.png)
10 UIKeyboardTypeTwitter API_AVAILABLE(ios(5.0)), // A type optimized for twitter text entry (easy access to @ #)
![](https://img.haomeiwen.com/i2606515/137bed76235bca3f.png)
11 UIKeyboardTypeWebSearch API_AVAILABLE(ios(7.0)), // A default keyboard type with URL-oriented addition (shows space . prominently).
![](https://img.haomeiwen.com/i2606515/f2523b60bfbf6979.png)
12 UIKeyboardTypeASCIICapableNumberPad API_AVAILABLE(ios(10.0)), // A number pad (0-9) that will always be ASCII digits.
!
![](https://img.haomeiwen.com/i2606515/66decf1d65a4bd93.png)
13 UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated
![](https://img.haomeiwen.com/i2606515/d8c3949ddae168e4.png)
网友评论