// 键盘弹出
-(void)keyboardWillShow:(NSNotification *)not{
// 获取键盘的高度
CGSize size =[[not.userInfo objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue].size;
// 键盘弹起的高度是216
// NSLog(@"%f",size.height);
// 设置动画木块
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.25];
_chatView.frame=CGRectMake(0,420-size.height , 320, 40);
_tableView.frame=CGRectMake(0, 0, 320, 420-size.height);
[UIView commitAnimations];
}