Is it possible to change popToViewController transition style for UINavigationController? I need the same style as for pushViewController method?(I mean from right to left style(pushViewController), not left to right(popToViewController by default)).
Asked
Active
Viewed 1,679 times
0
-
check this http://stackoverflow.com/questions/9480458/change-animation-transition – Matt Jul 16 '12 at 06:29
-
thanks, but it only changes for transition animation. I need the same style transition for pop as push style. – ArisRS Jul 16 '12 at 06:48
-
possible duplicate of [How to change the Push and Pop animations in a navigation based app](http://stackoverflow.com/questions/2215672/how-to-change-the-push-and-pop-animations-in-a-navigation-based-app) – Monolo Jul 16 '12 at 08:27
1 Answers
1
For modally presented view controllers, you can change the animation with the modalTransitionStyle property. AFAIK, there is no way to change a navigation controller's push animation (except rebuilding UINavigationController from scratch). https://github.com/devindoty/iOS-Transition-Pack
OR
[UIView beginAnimations:@"animation" context:nil];
[self.navigationController pushViewController: yourviewcontroller animated:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO];
[UIView commitAnimations];

Ramz
- 596
- 1
- 6
- 23
-
http://stackoverflow.com/questions/2506647/iphone-flip-animation-when-controller-pushed – Ramz Jul 16 '12 at 07:49
-
whether this answer is useful for you to solve your problem?If so please accept or rate my answer – Ramz Oct 12 '12 at 08:51