-2
我的程序有UIToolBar
,其中包含UITextField
和UIButton
。当软键盘出现时,整个视图(self.view
)就会出现。当UIToolBar
移动到新的位置时,该按钮有时不会正确捕获事件。点击按钮需要点击一个事件。动画UIButton不愿意捕捉事件
当键盘出现
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.25];
self.view.frame = CGRectMake(0,-220,320,400);
tableView.frame = CGRectMake(10, 220, 320, 264);
[UIView commitAnimations];
的[词在iPhone屏幕上方落下](HTTP可能重复执行下面的代码集:// stackoverflow.com/questions/8222466/words-falling-from-the-top-of-screen-in-iphone) - 请参阅我的答案,关于presentationLayer和touch物件的动画处理 – jrturton