怎样在键盘上添加工具栏
来源:互联网 发布:二维数组拷贝字符串 编辑:程序博客网 时间:2024/04/28 00:17
1. 初始化一个ToolBar
UIToolbar * topView = [[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, screenWith, 30)];
[topView setBackgroundImage:[UIImage imageNamed:@"plan_show_big_btm.png "] forToolbarPosition:UIBarPositionTopAttached barMetrics:UIBarMetricsDefault];
2. ToolBar 上面添加按钮
UIBarButtonItem * doneButton = [[UIBarButtonItem alloc]initWithTitle:@"done" style:UIBarButtonItemStyleDone target:self action:@selector(dismissKeyBoard)];
NSArray * buttonsArray = [NSArray arrayWithObjects:doneButton,nil];
[doneButton release];
[topView setItems:buttonsArray];
[_contentOfDiray setInputAccessoryView:topView];
- 怎样在键盘上添加工具栏
- iOS 键盘添加工具栏
- RCP,在工具栏上添加其它控件
- 在工具栏上添加下拉箭头按钮
- 如何在工具栏上添加平面下拉控件
- SDI在自定义的工具栏上添加下拉控件
- 【VC+MFC】在工具栏上添加ComboBox控件的方法
- 在原先的键盘上添加view
- 怎样在DELPHI窗体上添加链接
- 怎样在PDF文件上添加印章
- 怎样为工具栏按钮添加字
- iOS键盘、选取器上的工具栏
- 在word中添加工具栏
- 在工具栏上加控件
- 在iOS虚拟键盘上添加动态隐藏按钮
- [iOS]如何在键盘上添加一层遮罩层
- 在iOS虚拟键盘上添加动态隐藏按钮
- 在iOS虚拟键盘上添加动态隐藏按钮
- Building QT for i.MX6 with YOCTO
- AFNetworking3.0的使用
- C语言strchr函数
- 【树项目5——二叉树的层次遍历算法 ——第11周】
- MapReduce源码对写MR application帮助最大的部分
- 怎样在键盘上添加工具栏
- 第8周 项目4-字符串加密
- JAVA 枚举 String-int
- java常用库
- 第十一周项目1--二叉树算法验证(2)<2,3>
- 点亮我的攻击地图:树莓派蜜罐节点部署实战
- spring mvc 错误
- sqoop1 命令说明
- OCP-1Z0-051-2015-39题