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