私のプログラムには、UIToolBar
と を含む がUITextField
ありUIButton
ます。全体図 ( self.view
) は、ソフト キーパッドが表示されると移動します。がUIToolBar
新しい位置に移動すると、ボタンがイベントを正しくキャプチャしない場合があります。1 つのイベントを発生させるには、ボタンを数回クリックする必要があります。
キーボードが起動すると、次のコード セットが実行されます。
[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];