The [[UIDevice currentDevice] orientation]
method returns a number of orientations beyond the portrait and landscape orientation. I am well aware of checking to se
Have you tried using UIInterfaceOrientationPortrait
/UIInterfaceOrientationLandscape
? I usually have pretty good results using these methods:
if(UIInterfaceOrientationIsPortrait(viewController.interfaceOrientation)) {
//do portrait work
} else if(UIInterfaceOrientationIsLandscape(viewController.interfaceOrientation)){
//do landscape work
}
You might also try UIDeviceOrientationIsValidInterfaceOrientation.
These will only return the app's orientation, which may not be the same as the device's orientation.
If those don't work, you can also try:
[[UIApplication sharedApplication] statusBarOrientation]