iOS 键盘的各种类型

2020-11-14  本文已影响0人  LoveBe

1、UIKeyboardTypeDefault    当前输入法的默认类型

2、UIKeyboardTypeASCIICapable    输入ASCII字符

3、UIKeyboardTypeNumbersAndPunctuation    输入数字和各种标点符号

4、UIKeyboardTypeURL    输入URL(突出显示./.com)

5、UIKeyboardTypeNumberPad    纯数字键盘

6、UIKeyboardTypePhonePad    电话键盘(1-9,*,0,#,数字下方带有字母)

7、UIKeyboardTypeNamePhonePad    输入个人姓名或电话号码

8、UIKeyboardTypeEmailAddress    电子邮件地址(突出显示空格@.)

9、UIKeyboardTypeDecimalPad    带小数点的数字键盘

10、UIKeyboardTypeTwitter    输入Twitter文本(易于访问@#)

11、UIKeyboardTypeWebSearch    具有面向URL的附加功能的默认键盘类型(突出显示空格.)

12、UIKeyboardTypeASCIICapableNumberPad    始终为ASCII数字的数字键盘(0-9)。

13、UIKeyboardTypeAlphabet    不推荐

上一篇 下一篇

猜你喜欢

热点阅读