My application uses 2 UIWindows. The first shows a TabBar with ViewControllers, which only rotates in the Portrait direction. Everything is fine here.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (UIInterfaceOrientationIsPortrait(interfaceOrientation)); }
In another window, I have a UIViewController that rotates to all orientations.
The problem is that when I show the second window
[secondWindow makeKeyAndVisible]
And then go back to the first
[firstWindow makeKeyAndVisible]
The status bar rotates in all directions, and the event should not be triggered. How can i solve the problem?
iphone rotation uiwindow
cesarnicola
source share