So I followed this thread: RootViewController Switch Transition Animation to transit the window.rootViewController from A to B to C. Code looks like this:
[UIView transitionWithView:self.window
duration:0.5
options: UIViewAnimationOptionTransitionFlipFromLeft
animations:^{
self.window.rootViewController = newViewController;
}
completion:nil];
The problem is my app shall only support landscape, but during the rootViewController transition, the new view controller appears in portrait mode than quickly rotate to landscape mode.
I'm sure that:
- I've set UISupportedOrientation to landscape (home button right)
- for each viewcontroller, in the shouldAutoRotateToOrientation method, I set only for landscape
What could be the other reason?