Hi,
Sorry if this is a rudimentary question, but to me, it is very frustrating. I would like to make an application with two views, both in landscape. So, I set UIInterfaceOrientation to UIInterfaceOrientationLandscapeRight in my info.plist. Then, in my applicationDidFinishLaunching, I put application.statusBarOrientation = UIInterfaceOrientationLandscapeRight. Then, in both of my viewControllers, I put, in the -(BOOL)shouldAutoRotateTo...
Code:
if(interfaceOrientation == UIInterfaceOrientation || interfaceOrientaion == UIInterfaceOrientationLandscpeLeft) {
return YES;
}
else {
return NO;
}
return(interfaceOrientation == UIInterfaceOrientationLandscapeRight)
}
That works great... for the first view. However, when I switch views, the second view is not rotated and gets cut off. To try to fix this, I rotated my second view. But then, I get some weird quirks with the keyboard, textfields, and actionsheets.GRRR!! Someone please help!