iOS键盘类型
来源:互联网 发布:php 倒计时功能 编辑:程序博客网 时间:2024/05/30 23:01
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).
#if __IPHONE_4_1 <= __IPHONE_OS_VERSION_MAX_ALLOWED
UIKeyboardTypeDecimalPad, // A number pad with a decimal point.
#endif
#if __IPHONE_5_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
UIKeyboardTypeTwitter, // A type optimized for twitter text entry (easy access to @ #)
#endif
UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated
} UIKeyboardType;
下面是各个类型的样式
UIKeyboardTypeAlphabet(Alphabet字母),UIKeyboardTypeASCIICapable,UIKeyboardTypeDefault: (这三个默认都显示字母表--下面第一幅图,另外可以切换倒--下面第二幅图)
UIKeyboardTypeDecimalPad: (Decimal十进制)
UIKeyboardTypeEmailAddress:
UIKeyboardTypeNamePhonePad:(这个类型默认显示第一幅图片,如果点击123按钮则会显示第二副键盘)
UIKeyboardTypeNumberPad:(下图显示)
UIKeyboardTypeNumbersAndPunctuation:(默认显示下面第一幅图,切换显示第二幅)
UIKeyboardTypePhonePad:(默认显示下面第一幅图,切换显示第二幅)
UIKeyboardTypeTwitter:(默认显示下面第一幅图,切换显示第二幅)
- iOS键盘类型
- ios 键盘类型
- iOS 键盘显示类型
- iOS 键盘类型设置
- iOS所有键盘类型
- IOS键盘类型
- ios键盘类型设置
- iOS 键盘类型
- iOS原生键盘类型
- iOS 开发- 键盘类型
- iOS 键盘类型
- iOS键盘类型
- iOS 键盘类型UIKeyboardType
- iOS 键盘类型定制归纳
- ios 键盘风格与类型
- iOS 键盘类型定制归纳
- iOS-键盘弹出的类型
- iOS开发选择键盘类型
- 类加载机制详解
- java反射
- jQuery弹性滑动导航菜单
- Ajax学习笔记
- jquery ui tab ajax 切换,默认选中第一个(序号为0)
- iOS键盘类型
- 使用highcharts,本处使用了column柱形图,较简单
- 串口驱动之写操作
- 搜索,还是Google吧
- 获取每个月的最后一天的当前日期以及前一个月的当前日期,外加23:59:59
- 链式表的按序号查找
- CodeForces 449 D.Jzzhu and Numbers(状压DP+容斥原理)
- 前台使用js的encodeURIComponent编码后,java解析乱码问题的解决方法
- 半路算法之Dijkstra——以路由算法的角度进行理解