Follow up question on this one
Say my app has several ViewControllers, let’s call them A,B,C,D. Usually moving back one step, i.e. from D -> C, would be using the back button in the NavigationBar or via code with the line
[self.navigationController popViewControllerAnimated:YES];
What I want to do is going back several steps, like from D -> B. This would be done with
[self.navigationController popToViewController:B animated:YES];
Unfortunately this way I can’t decide which animation to use. Instead of the default animation I have to use a Flip animation.
The only way to do this I found was this method
[self.navigationController transitionFromViewController:self.navigationController.presentedViewController toViewController:B duration:300 options:UIViewAnimationOptionTransitionFlipFromRight animations:nil completion:nil];
Is this the only way to achieve this or can anyone suggest a better way to do it?
With reference from your comments….
” sounds right, but where would I define that it’s supposed to be a flip animation? As far as I can see this still uses the default animation. – taymless “
you need to perform the animation means you use this block of code….
and the method call will be….
i hope this will help you…