0
使用上述內容時,它會將新視圖垂直滾動到屏幕上,並通過向下滾動屏幕來解除視圖。爲什麼是這樣的,我如何克服這一點? (特別是因爲它應該是一個水平的動畫)UIModalTransitionStyleFlipHorizontal
我的代碼如下:
- (IBAction)infoButtonPressed:(id)sender {
InfoViewController *infoViewController = [[InfoViewController alloc] initWithNibName: @"DAandPAInfo" bundle: [NSBundle mainBundle]];
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: infoViewController animated: YES];
[infoViewController release];
}