UIKeyBoard高度的监控
来源:互联网 发布:securecrt 8.1.4 mac 编辑:程序博客网 时间:2024/06/05 00:26
监控KeyBoard
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyBoardWillShow:)name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyBoardWillHidden:)name:UIKeyboardWillHideNotification object:nil];
显示的实现
- (void) keyBoardWillShow:(NSNotification*) notification
{
NSDictionary *userInfo = [notification userInfo];
// Get the origin of the keyboard when it's displayed.
NSValue* aValue = [userInfo objectForKey:UIKeyboardFrameEndUserInfoKey];
// Get the top of the keyboard as the y coordinate of its origin in self's view's coordinate system. The bottom of the text view's frame should align with the top of the keyboard's final position.
CGRect keyboardEndFrame = [aValue CGRectValue];
CGRect keyboardFrame = [self.view convertRect:keyboardEndFrame toView:nil];
CGFloat keyboardHeight = keyboardFrame.size.height;
}
- UIKeyBoard高度的监控
- UIKeyBoard高度的监控
- UIKeyBoard高度的监控
- UIKeyboard
- UIKeyboard
- UIKeyboard 类的一些属性和使用
- Hack the UIKeyboard(自定义iOS内置的键盘)
- [iOS]获取当前界面上显示的键盘UIKeyboard方法
- iOS: UIKeyboard
- UIKeyboard键盘
- UIKeyboard键盘
- UIKeyboard 键盘
- 获取浏览器的高度、宽度以及监控浏览器窗口的变化
- iOS8.0+ 第三方输入法多次发送UIKeyboard相关的通知
- Linux系统监控命令个人总结之jstack查找高度占用CPU的java代码
- 实时视频质量监控---视频高度精确的自动测量多个流质量视频检测
- HOWTO: Customize UIKeyboard
- UIKeyboard键盘相关知识点
- Struts2中的拦截器详解
- vim 常用指令示意图
- 收藏网址
- 旅行摆摊 更新每天收入支出 看自己能走到哪里
- 新手对于java集合的理解
- UIKeyBoard高度的监控
- hznu 1437: Clockwise(隐藏的暴力水题,数学)
- awt简易的文件搜索器
- 黑马程序员--I/O流知识点总结(二)
- iOS使用NSMutableAttributedString 实现富文本(不同颜色字体、下划线等)
- 程序启动动画
- Aop(编程方式)
- 今天是个好日
- Android多线程编程之五:限制模式(StrictMode)的使用