UIKeyboard
来源:互联网 发布:js除法取整 编辑:程序博客网 时间:2024/06/04 18:34
转自:http://www.cocoadev.com/index.pl?UIKeyboard
Part of the iPhone UIKit framework. Subclass of UIView.
+ (void)initImplementationNow;
Must be called before initWithFrame?
- (id)initWithFrame:(CGRect)frame;
[UIKeyboard initImplementationNow]; UIKeyboard *keyboard = [[UIKeyboard alloc] initWithFrame: CGRectMake(0.0f, 245.0f, 320.0f, 480.0f - 245.f)];//Call up your keyboard into your mainView created as a UIWindowmainView = [[UIView alloc] initWithFrame: rect];
enum values for setDefaultReturnKeyType:
0 = Return (gray background)1 = Go (blue background)2 = Google (blue background)3 = Join (blue background)4 = Next (gray background)5 = Route (blue background)6 = Search (blue background)7 = Send (blue background)8 = Yahoo! (blue background)
To change the keyboard layout, use one of the below enums for setPreferredKeyboardType, followed with a call to showPreferredLayout:
0 = default QWERTY layout1 = numeric/punctuation layout2 = phone keypad3 = URL layout4 = SMS (?) layout, shift disabled, num key goes to phone keypad5 = black version of default layout6 = spartan phone keypad7 = black spartan (clean!)8 = email keypad w/ space key9 = email keypad w/ @ instead of space
As an aside, if you're using UIAlert?, be sure to set popupAlertAnimated:NO otherwise your showPreferredLayout will be overridden with the default layout. For example:
[myAlert popupAlertAnimated:NO]; [[myAlert keyboard] setPreferredKeyboardType: 1]; [[myAlert keyboard] showPreferredLayout];
- UIKeyboard
- UIKeyboard
- iOS: UIKeyboard
- UIKeyboard键盘
- UIKeyboard键盘
- UIKeyboard 键盘
- HOWTO: Customize UIKeyboard
- UIKeyboard键盘相关知识点
- UIKeyboard键盘相关知识点
- UIKeyboard and UITableView
- UIKeyboard键盘相关知识点
- UIKeyboard键盘相关知识点
- IOS UIKeyboard键盘
- UIKeyBoard高度的监控
- UIKeyBoard高度的监控
- UIKeyBoard高度的监控
- swift下获取键盘UIKeyboard
- 如何在UIKeyboard中加入定制button
- Javascript调用后台方法
- 英特尔SR-IOV实现PCI硬件资源共享
- Ubuntu 11.10 上很棒的一组主题
- SQLServer 2005 Row_Number 的使用
- FltGetFileNameInformation+VISTA+IRP_MJ_NETWORK_QUERY_OPEN+BSOD
- UIKeyboard
- android Frame-By-Frame Animations(一帧一帧地播放动画)的使用
- iphone ios debug 调试时如何查看、监视变量
- timestamp(时间戳)详解
- libxml++
- [C#] DBNull、Null和String.Empty的区别
- 【开发者实用工具】移动应用信息统计
- plsql知识梳理-计划任务
- android 源码 打包成apk的实现