UIModalTransitionStyleFlipHorizontal
When using the above, it scrolls the new view vertically up the screen, and dismisses it by scrolling the view down the screen. Why is this, and how do I overcome this? (Especially since it should be a horizontal animation)
My code is as follows:
- (IBAction)infoButtonPressed:(id)sender {
InfoViewController *infoViewController = [[InfoView开发者_运维问答Controller alloc] initWithNibName: @"DAandPAInfo" bundle: [NSBundle mainBundle]];
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: infoViewController animated: YES];
[infoViewController release];
}
I realised my mistake.
infoViewController.modalTransitionStyle = ...
精彩评论