多次 设置frame,并用了动画,
[UIViewbeginAnimations:nilcontext:nil];
[UIViewsetAnimationDelegate:self];
[UIViewsetAnimationCurve:[[[notification userInfo] objectForKey:UIKeyboardAnimationCurveUserInfoKey] intValue]];
[UIViewsetAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] floatValue]];
// bottomView.frame =bottomViewFrame;
// bottomView.inputBgImageView.frame = bottomBgViewFrame;
// buyView.frame = bottomBuyViewFrame;
// bottomView.inputTextView.frame = bottomInputTextViewFrame;
// bottomView.frame = CGRectMake(bottomView.frame.origin.x, self.contentView.frame.size.height - kBottomViewHeightDefault, bottomView.frame.size.width, kBottomViewHeightDefault);
buyView.frame = CGRectMake(buyView.frame.origin.x,bottomView.frame.origin.y - buyView.frame.size.height, buyView.frame.size.width, buyView.frame.size.height);
[UIViewcommitAnimations];