In iPad my app I have 2 views, the first view can be portrait or landscape orientation but the second view should be landscape mode. So I forcibly made the second view to be shown in Landscape mode using the below
[[UIApplication sharedApplication] setStatusBarOrientation:
UIInterfaceOrientationLandscapeRight];
But what my problem is after coming to the second view when I check the device orienatation it returns “Portrait” . but the second view is always in Landscape mode. But why I get the wrong orientation.
Thanks for any help