I have a basic TabBar application that supports landscape orientation for only one special view (the root view of the UINaviagtionController). Now I want to force portrait orientation for all other views for this navigation controller. I tried to use
[[UIDevice currentDevice] setOrientation:UIDeviceOrientationPortrait];
This works fine, but this piece of code is a private api call, and I cannot risk the application crashing.
I also tried to rotate the next view manually, but this only rotates the view, not the navigation or tab bar.
Is there a similar way to force an orientation change?
objective-c iphone
AlexVogel Dec 01 '09 at 8:07 2009-12-01 08:07
source share