神医,全部的诡异动画,
- (void)keyboardWillHide:(NSNotification*)notification {
[UIViewbeginAnimations:nilcontext:nil];
[UIViewsetAnimationDelegate:self];
[UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIViewsetAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] floatValue]];
bottomView.frame = CGRectMake(bottomView.frame.origin.x, bottomView.frame.origin.y + keyboardHeight, bottomView.frame.size.width, bottomView.frame.size.height);
self.tableView.frame = CGRectMake(self.tableView.frame.origin.x, self.tableView.frame.origin.y + keyboardHeight, self.tableView.frame.size.width, self.tableView.frame.size.height);
[UIViewcommitAnimations];
}
任何动画的地方都是 要么动画加的不对,要么是 没有关闭动画,