UIKit框架支持8种风格键盘。

来源:互联网 发布:湘北vs海南数据 编辑:程序博客网 时间:2024/06/04 01:11
UIKit框架支持8种风格键盘。

typedef enum {      UIKeyboardTypeDefault,                // 默认键盘:支持所有字符       UIKeyboardTypeASCIICapable,           // 支持ASCII的默认键盘       UIKeyboardTypeNumbersAndPunctuation,  // 标准电话键盘,支持+*#等符号       UIKeyboardTypeURL,                    // URL键盘,有.com按钮;只支持URL字符       UIKeyboardTypeNumberPad,              //数字键盘       UIKeyboardTypePhonePad,               // 电话键盘       UIKeyboardTypeNamePhonePad,           // 电话键盘,也支持输入人名字       UIKeyboardTypeEmailAddress,           // 用于输入电子邮件地址的键盘   } UIKeyboardType;  用法用例:textView.keyboardtype = UIKeyboardTypeNumberPad;


0 0