使用上述方法时,它会在屏幕上垂直滚动新视图,并通过在屏幕上向下滚动视图来关闭它。为什么会这样,我该如何克服?(特别是因为它应该是水平动画)
我的代码如下:
- (IBAction)infoButtonPressed:(id)sender {
InfoViewController *infoViewController = [[InfoViewController alloc] initWithNibName: @"DAandPAInfo" bundle: [NSBundle mainBundle]];
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: infoViewController animated: YES];
[infoViewController release];
}