键盘设置
来源:互联网 发布:java 登录验证码 编辑:程序博客网 时间:2024/04/28 15:46
键盘的调用 打开1
[theTextField becomeFirstResponder];
关闭
[theTextField resignFirstResponder];
在viewdidLoad中添加
// 键盘的frame发生改变时发出的通知(位置和尺寸)
// UIKeyboardWillChangeFrameNotification
// UIKeyboardDidChangeFrameNotification
// 键盘显示时发出的通知
// UIKeyboardWillShowNotification
// UIKeyboardDidShowNotification
// 键盘隐藏时发出的通知
// UIKeyboardWillHideNotification
// UIKeyboardDidHideNotification
[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(keyboardDidShow:)name:UIKeyboardWillChangeFrameNotificationobject:nil];
//keyBoard已经展示出来
- (void)keyboardDidShow:(NSNotification *)notification
{
// NSValue* aValue = [[notification userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey];
// CGRect keyboardRect = [aValue CGRectValue];
// CGRect keyboardFrame = [self.view convertRect:keyboardRect fromView:[[UIApplication sharedApplication] keyWindow]];
// CGFloat keyboardHeight = keyboardFrame.size.height;
// NSLog(@"##keboardHeight=%.2f",keyboardHeight);
//lastView最底层的View
self.lastView.frame = CGRectMake(0, -100,DEF_SCREEN_WIDTH,DEF_SCREEN_HEIGHT);
// self.ButtonView.center = CGPointMake(DEF_SCREEN_WIDTH/2, DEF_SCREEN_HEIGHT/2 - 40);
}
- 键盘设置
- 键盘设置
- 键盘设置
- 键盘设置
- 设置键盘
- 设置键盘重复延迟
- 设置键盘属性
- 键盘的相关设置
- Raspbmc键盘设置
- 虚拟键盘的设置
- iOS键盘设置相关
- IOS模拟器键盘设置
- iOS:键盘设置
- 设置键盘监听器
- iOS 键盘类型设置
- ios键盘类型设置
- 键盘的相关设置
- 设置表情键盘视图
- UIDatePicker 轮转日期选择器 时间选择器
- 《编程珠玑》(第二版)第一章习题2(用位运算实现位向量)
- 关于云端JSON 数据的解析
- 动态连通性问题
- seci-log 开源日志分析软件发布了
- 键盘设置
- dts
- 越狱[HNOI2008][Codevs1851]
- Flask(8)-用户认证
- c语言开源项目
- Net下,如何通过Com组件实现自己实现事务
- 希尔排序算法(Java语言)
- mac虚拟机
- Windows 下安装GNUstep