0

上記を使用すると、新しいビューが画面を垂直方向にスクロールし、画面を下にスクロールして閉じます。これはなぜですか、どうすればこれを克服できますか? (特に横向きのアニメーションのはずなので)

私のコードは次のとおりです。

- (IBAction)infoButtonPressed:(id)sender {
InfoViewController *infoViewController = [[InfoViewController alloc] initWithNibName: @"DAandPAInfo" bundle: [NSBundle mainBundle]];
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: infoViewController animated: YES];
[infoViewController release];

}

4

1 に答える 1

2

私は自分の間違いに気づきました。

infoViewController.modalTransitionStyle = ...
于 2010-09-10T17:45:19.463 に答える