[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(keyboartWillShow:)name:UIKeyboardWillShowNotificationobject:nil];
[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(keyboardWillHide:)name:UIKeyboardWillHideNotificationobject:nil
- (void)keyboartWillShow:(NSNotification *)noti{
NSDictionary* info = [notiuserInfo];
CGSize kbSize = [[infoobjectForKey:UIKeyboardFrameEndUserInfoKey]CGRectValue].size;
self.tableView.contentInset =UIEdgeInsetsMake(self.tableView.contentInset.top,0, kbSize.height-30*PadWidthScale,0);
}
- (void)keyboardWillHide:(NSNotification *)noti{
self.tableView.contentInset =UIEdgeInsetsMake(self.tableView.contentInset.top,0, 0,0);
}