Hi guys,
I have a stack of 3 view controllers in my Navigation View Controller. The first one is in portrait orientation. The second and third should be in landscape orientation. However, they appear in the portrait mode.
I have this code in my shouldAutorotateToInterfaceOrientation in my second and third view controller.
Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationLandscapeRight) || (interfaceOrientation == UIInterfaceOrientationLandscapeLeft));
}
In the first code, I have the supported orientation as portrait.
I thought this should take care of it. Am I supposed to do something else?
Is it because I am using Navigation View Controller? I have tried to change this view controllers normally (by adding them as subview) and they appear in correct orientation.
Thanks.