I have a multi-view app that is largely portrait based, but with one view that needs to be displayed in landscape only.
I have a main UIViewController subclass that handles the navigation and loading of the individual views.
In the controller for the landscape view I have added this to the viewDidLoad:
[self.view setCenter:CGPointMake(160.0f, 240.0f)];
[self.view setTransform:CGAffineTransformMakeRotation(3.14159 2f, 2.0f)];
This then causes the display to correctly rotate tand ensure that the landscape view is shown, however the status bar remains as though in portrait mode - i.e. to the left of the screen when holding the iPhone horizontally/landscape.
I'm hoping someone can advise me how to get the status bar to rotate into landscape mode when I rotate the view contents - or if there is a better way of achieving this altogether!
TIA