UIKeyboardType类型

UIKeyboardType是一个枚举;如下

typedef enum {

    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 entry (shows . / .com prominently).

    UIKeyboardTypeNumberPad,              // A number pad (0-9). Suitable for PIN entry.

    UIKeyboardTypePhonePad,               // A phone pad (1-9, *, 0, #, with letters under the numbers).

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

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

    UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated

} UIKeyboardType;

下面是各个类型的样式

  • UIKeyboardTypeAlphabet(Alphabet字母),UIKeyboardTypeASCIICapable,UIKeyboardTypeDefault: (这三个默认都显示字母表--下面第一幅图,另外可以切换倒--下面第二幅图)
UIKeyboardType类型_第1张图片

UIKeyboardType类型_第2张图片
  • UIKeyboardTypeDecimalPad: (Decimal十进制)
UIKeyboardType类型_第3张图片
  • UIKeyboardTypeEmailAddress:
UIKeyboardType类型_第4张图片
  • UIKeyboardTypeNamePhonePad:(这个类型默认显示第一幅图片,如果点击123按钮则会显示第二副键盘)
UIKeyboardType类型_第5张图片

UIKeyboardType类型_第6张图片
  • UIKeyboardTypeNumberPad:(下图显示)
UIKeyboardType类型_第7张图片
  • UIKeyboardTypeNumbersAndPunctuation:(默认显示下面第一幅图,切换显示第二幅)
UIKeyboardType类型_第8张图片

UIKeyboardType类型_第9张图片
  • UIKeyboardTypeTwitter:(默认显示下面第一幅图,切换显示第二幅)
UIKeyboardType类型_第10张图片

UIKeyboardType类型_第11张图片

你可能感兴趣的:(UIKeyboardType类型)