iPhone Modal view transition. Flip opposite way?
using the transition, UIModalTransitionStyl开发者_StackOverfloweFlipHorizontal seems to flip from right to left when initialized and left to right when returning.
Is there any way to make it flip the opposite way?
Try this... transition the views first and when it completes, then present the modal view controller (not animated)
ModalViewController *modalViewController = [ModalViewController alloc] initWithNibName:@"ModalViewController" bundle:nil];
[UIView transitionFromView:self.view toView:modalViewController.view duration:0.75 options:UIViewAnimationOptionTransitionFlipFromLeft completion:^(BOOL finished){
if (finished) {
[self presentViewController:modalViewController animated:NO completion:nil];
}
}];
Not if you're using the modalTransitionStyle property.
If you want to do it you'd probably have to animate it yourself.
These are all the possible transition styles that you can use.
精彩评论