没有办法知道你没有一些代码在做什么,但你应该尝试这样的事:
- (void) animateTextField: (UITextView*) textView up: (BOOL) up
{
const int movementDistance = 80; // tweak as needed
const float movementDuration = 0.3f; // tweak as needed
int movement = (up ? -movementDistance : movementDistance);
[UIView beginAnimations: @"anim" context: nil];
[UIView setAnimationBeginsFromCurrentState: YES];
[UIView setAnimationDuration: movementDuration];
self.view.frame = CGRectOffset(self.view.frame, 0, movement);
[UIView commitAnimations];
}
从那里你觉得appropiate调用此(UIKeyboardWillShowNotigication,例如),以及它会动画您的视图,以显示文本视图。
也许不是视频,你可能会发布一些代码? – PengOne 2011-06-13 15:06:47