I have two simple UIViewControllers, their representations are 320 x 460 with status bars. I do in AppDelegate
self.window.rootViewController = [[[SimpleController alloc] init] autorelease]; [self.window makeKeyAndVisible];
In SimpleController, I have a button that makes
- (IBAction) switchToVerySimpleController { [UIView transitionWithView: [[UIApplication sharedApplication] keyWindow] duration: 0.5 options: UIViewAnimationOptionTransitionFlipFromLeft animations:^{ [[UIApplication sharedApplication] keyWindow].rootViewController = [[[VerySimpleController alloc] init] autorelease]; } completion: NULL]; }
The new view (VerySimpleController.view) is filled in blue. After the animation, the new view is shown with a tiny white stripe (with the size of the status bar) at the bottom, and then it rolls into place. Why is this happening and how to avoid it? I believe its status bar is to blame, and I tried setting statusBar = Unspecified to IB for both views, but that doesn't help.
UPDATE: When I hide the statusBar from the very beginning (via the setting in the .info file), the viewing setting does not happen. But still ... I need to show the statusBar, and I need this animation working properly.
source share