0

私は新しい iOS 開発者です。フィールドをアニメーション化しており、フィールドにデータを入力したいと考えています。次のコードを使用しています。

テキストが表示されません。上がっています。私を助けてください。

if UIInterfaceOrientationIsLandscape(theStatusBarOrientation)
    keyboardShiftAmount = keyboardFrame.size.width;
else 
    keyboardShiftAmount = keyboardFrame.size.height;

[UIView beginAnimations: @"ShiftUp" context: nil];
[UIView setAnimationDuration: keyboardSlideDuration];
NSLog(@"%f",keyboardShiftAmount);
self.view.center = CGPointMake(self.view.center.x,
                               self.view.center.y - keyboardShiftAmount);
[UIView commitAnimations];
viewShiftedForKeyboard = TRUE;
4

1 に答える 1

0

uitextfielddelegateを使用してアニメーションを作成する

于 2012-11-19T12:36:17.573 に答える