佚名通过本文主要向大家介绍了iphone4s搜狗输入法,搜狗输入法下载,搜狗输入法,搜狗输入法官方下载,sogou搜狗输入法 下载等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:iphone4s搜狗输入法 搜狗输入法键盘高度获取问题
描述:
解决方案1:
描述:
使用(void)keyboardWillShow:(NSNotification *)aNotification
获取搜狗输入法的信息时,得到的信息如下,键盘的高度为0.
{
UIKeyboardAnimationCurveUserInfoKey = 7;
UIKeyboardAnimationDurationUserInfoKey = "0.25";
UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 0}}";
UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 568}";
UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 568}";
UIKeyboardFrameBeginUserInfoKey = "NSRect: {{0, 568}, {320, 0}}";
UIKeyboardFrameEndUserInfoKey = "NSRect: {{0, 568}, {320, 0}}";
}
在键盘消失的方法(void)keyboardWillHide:(NSNotification *)aNotification
却能获取键盘的高度。
求问大神,这个问题怎么解决?
解决方案1:
我也遇到这个情况了,你解决了吗?
解决方案2:试试didShow呢。毕竟还没有展现。
解决方案3:没问题的吧,他会多次调用这个通知。后面会获取到正确的高度