Good evening all!
I am developing an application in Portait orientation and i was wander if there is a way for me to change the orientation of only one view to landspace left without messing with the rest of the app.
I tried returning
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
//return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
but with no luck… In IB the orientation for the View controller is set to landscape but when i run the app, it keeps appearing in portrait mode… Also tried setting the
[[UIApplication sharedApplication]setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft animated:NO];
with no luck…
Any help will be greatly appreciated.
Thank you.
The only thing that worked for me was using
in my ViewController and presenting it with presentModalViewController.
This forces the View to stay in landscape.