草庐IT

keyboardBounds

全部标签

ios - UIKeyboardWillShowNotification 为快速键盘返回不正确的框架

我正在使用UIKeyboardWillShowNotification和UIKeyboardWillHideNotification来处理键盘。这是显示键盘时调用的函数:-(void)keyboardWillShow:(NSNotification*)note{CGRectkeyboardBounds;//[[note.userInfovalueForKey:UIKeyboardFrameEndUserInfoKey]getValue:&keyboardBounds];NSValue*keyboardFrameBegin=[note.userInfovalueForKey:UIKeyb

ios - UIKeyboardWillShowNotification 为快速键盘返回不正确的框架

我正在使用UIKeyboardWillShowNotification和UIKeyboardWillHideNotification来处理键盘。这是显示键盘时调用的函数:-(void)keyboardWillShow:(NSNotification*)note{CGRectkeyboardBounds;//[[note.userInfovalueForKey:UIKeyboardFrameEndUserInfoKey]getValue:&keyboardBounds];NSValue*keyboardFrameBegin=[note.userInfovalueForKey:UIKeyb