当出发键盘的时候,出发监听
//键盘监测
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(kWillShow:) name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(kWillHide:) name:UIKeyboardWillHideNotification object:nil];
2.
#pragma mark Keyboard
-(void)kWillShow:(NSNotification *)noti{
CGRect kbEndFram = [noti.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
CGFloat Height = kbEndFram.size.height;
}
-(void)kWillHide:(NSNotification *)noti{
消失,,,为 0
}
4255

被折叠的 条评论
为什么被折叠?



