#pragma 键盘事件
- (void) keyboardWillShown:(NSNotification *) notif
{
NSDictionary *info = [notif userInfo];
NSValue *value = [info objectForKey:UIKeyboardFrameEndUserInfoKey];
CGSize keyboardSize = [value CGRectValue].size;
_keyBoradH = keyboardSize.height;
}
UIKeyboardFrameBeginUserInfoKey获取到的第三方键盘高度会不准
时间: 2024-10-15 08:10:48