Reputation: 5093
I set rootViewController for window by statement below. However, this statement is not animated.
self.appDelegate.window.rootViewController = navController;
Is it possible for me to animate this statement with the effect of NavigationController.popViewController
?
Upvotes: 0
Views: 85
Reputation: 5093
Looks like I found the answer on another SO thread
[UIView transitionWithView:self.appDelegate.window
duration:.75
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{
self.appDelegate.window.rootViewController = navController;
}
completion:nil];
However, it used dissolve effect. If someone could tell me which animation should I use to get the effect of popping from NavigationController.
Upvotes: 1