In my application's build settings, i have all supported orientations (besides upside down) checked.
However, when i launch the app, certain views that are not meant to show in Portrait will auto rotate and cutoff half the view. I do not want these views to rotate.
How can i prevent this? ive tried using:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if(interfaceOrientation == UIInterfaceOrientationLandscapeLeft)
return YES;
if(interfaceOrientation == UIInterfaceOrientationLandscapeRight)
return YES;
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
But the device still wants to turn portrait when it can. Any help would be great.