I want to turn only one of my views within my app to landscape right.
All my other views are in portrait mode. Previous view is in portrait mode. I pushed landscape view to portrait view. How can I do it correctly?
in my landscape view controller:
//Orientation
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
// New Autorotation support
-(BOOL)shouldAutorotate {
return YES;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscapeRight;
}