textFile弹出键盘时候整个view上移动
来源:互联网 发布:淘宝复制宝贝到京东 编辑:程序博客网 时间:2024/04/29 14:24
在textFile的下面两个回调方法中实现代码:
-(void)textFieldDidBeginEditing:(UITextField *)textField;{
textField.returnKeyType = UIReturnKeyDone; //键盘的return按键名字为Done
if ([textField isEqual:emaiTextFile]) {//用這個方法指定特定的textFile,同样也可以设置tag辨别
CGRect rect = CGRectMake(0.0f, -150,self.view.frame.size.width,self.view.frame.size.height+150);
self.view.frame = rect;
}
}
-(void)textFieldDidEndEditing:(UITextField *)textField{
if ([textField isEqual:emaiTextFile]) {
int offset = 216;
if(offset > 0){
CGRect rect = CGRectMake(0.0f,0,self.view.frame.size.width,self.view.frame.size.height-150);
self.view.frame = rect;
}
}
}
0 0
- textFile弹出键盘时候整个view上移动
- iOS键盘高度,键盘弹出视图上移动
- iOS键盘弹出的时候会挡住底部的控件,可以通过以下方法将整个UIView上移。
- 输入框被键盘遮挡时 让整个view上移
- 输入框弹出的时候内容上移动
- IOS 键盘弹出遮挡输入框使view上移
- 弹出键盘上移tableView
- iOS中,textField弹出键盘时,让整个视图上移,键盘回收,视图收回
- view随键盘上移
- 键盘view 上移
- iOS TextField 弹出键盘时实现view整体上移下移:防止弹出键盘遮挡输入框
- 当textField输入框被键盘遮挡时 让整个view上移
- iOS 键盘弹出视图上移
- 弹出键盘 输入框上移
- 弹出键盘时视图上移
- android 软键盘弹出 布局上移动
- 实现view底部控件随着键盘的弹出而上移的效果
- 整个画面上移,使键盘不挡住画面,去除键盘
- Mybatis <collection> 标签使用。
- tomcat配置详解以及如何在tomcat中配置二个项目
- 食物链
- 保障Windows系统安全设置方法高级篇
- python调用java编写的Webservice
- textFile弹出键盘时候整个view上移动
- hadoop集群内存设置
- Java实现 字符串匹配 KMP 算法
- C++继承:公有,私有,保护
- android图片存取
- cocos2dx游戏开发加速度计
- Oracle ADF 实现全选,全不选,多选功能
- usaco 月赛 2007 Cow Traffic 题解
- 报到