1、英文键盘:
UIKeyboardTypeAlphabet(Alphabet字母)
UIKeyboardTypeASCIICapable
UIKeyboardTypeDefault
这三个默认都显示字母表。默认下面第一幅图,点左下角切换到下面第二幅图。

2、数字键盘
UIKeyboardTypeDecimalPad (Decimal十进制)

3、电子邮箱键盘
UIKeyboardTypeEmailAddress

4、没有符号的英文键盘
UIKeyboardTypeNamePhonePad
这个类型默认显示第一幅图片,如果点击123按钮则会显示第二副键盘。

5、没有小数点的数字键盘
UIKeyboardTypeNumberPad

6、全键盘的数字键盘
UIKeyboardTypeNumbersAndPunctuation
默认显示下面第一幅图,切换显示第二幅

7、带符号的数字键盘
UIKeyboardTypePhonePad
默认显示下面第一幅图,切换显示第二幅

8、推特键盘
UIKeyboardTypeTwitter
默认显示下面第一幅图,切换显示第二幅

网友评论