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 回答