键盘风格 及设置键盘的inputView
来源:互联网 发布:硅胶厨具 知乎 编辑:程序博客网 时间:2024/04/28 22:31
UIKeyboardTypeDefault, // 默认键盘:支持所有字符
UIKeyboardTypeASCIICapable, // 支持ASCII的默认键盘
UIKeyboardTypeNumbersAndPunctuation, // 标准电话键盘,支持+*#等符号
UIKeyboardTypeURL, // URL键盘,有.com按钮;只支持URL字符
UIKeyboardTypeNumberPad, //数字键盘
UIKeyboardTypePhonePad, // 电话键盘
UIKeyboardTypeNamePhonePad, // 电话键盘,也支持输入人名字
UIKeyboardTypeEmailAddress, // 用于输入电子邮件地址的键盘
可以设置textfield.KeyBoardType= UIKeyboardTypeDefault;
#pragma mark=================== //textView工具框
-(void)configAccessoryView:(UITextField *)sender
{
UIToolbar * topView = [[UIToolbaralloc]initWithFrame:CGRectMake(0,0, 320, 40)];
[topView setBarStyle:UIBarStyleBlack];
UIBarButtonItem * btnSpace = [[UIBarButtonItemalloc]initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpacetarget:selfaction:nil];
UIBarButtonItem * cancelButton = [[UIBarButtonItemalloc]initWithTitle:@"キャンセル" style:UIBarButtonItemStyleBordered target:self action:@selector(dismissKeyBoard)];
UIBarButtonItem * doneButton = [[UIBarButtonItemalloc]initWithTitle:@"決定"style:UIBarButtonItemStyleBorderedtarget:selfaction:@selector(dismissKeyBoard)];
NSArray * buttonsArray = [NSArrayarrayWithObjects:cancelButton,btnSpace,btnSpace,doneButton,nil];
[topView setItems:buttonsArray];
[sender setInputAccessoryView:topView];
}
- 键盘风格 及设置键盘的inputView
- iOS开发键盘的弹出风格设置
- 键盘 - 键盘样式风格有关设置
- 键盘样式风格有关设置
- 键盘样式风格有关设置
- 键盘样式风格有关设置
- 键盘样式风格有关设置
- 键盘风格
- QT的键盘事件及焦点设置
- 键盘样式风格有关设置-iOS开发
- 键盘样式风格有关设置-iOS开发
- 键盘样式风格有关设置-iOS开发
- iOS开发---键盘样式风格有关设置
- iOS开发-键盘样式风格有关设置
- ios开发之键盘样式风格设置
- subline text 键盘设置 eclipse风格
- iOS开发-键盘样式风格有关设置
- iOS开发-键盘样式风格有关设置
- 通过request获得客户机访问的ip地址
- Hadoop2.2.0单节点安装及测试
- VC_VC++类继承内存布局
- Http常见错误
- 关于指针* —— int a; int* a; int** a; int (*a)[10]; int (*a)(int)区别
- 键盘风格 及设置键盘的inputView
- mysql远程无法连接
- 【转】打开eclipse点更新后,出现This Android SDK requires Android Developer Toolkit version 22.0.0 or above.
- hdu oj 2010
- JS 原生控制弹出框注册模块
- 使用yum 报错 :This system is not registered with RHN
- opencv学习-imgprocess-仿射变换warpAffine
- Android string.xml如何输入空格、换行等符号——转义字符
- 详解著名的awk oneliner,第二部分:文本替换