In iOS 8, they added device orientation detection for UIInterfaceOrientationUnknown(check the documentation before release here )
UIInterfaceOrientationUnknown
The orientation of the device cannot be determined.
Available in iOS 8.0 and later.
typedef enum : NSInteger {
UIInterfaceOrientationUnknown = UIDeviceOrientationUnknown,
UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait,
UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight,
UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft
} UIInterfaceOrientation;
As I see it, it is only 4 ways in which the device can ever be Portrait, UpsideDown, LandscapeRightand LandscapeLeft. So, in what circumstances will you ever have a device orientation toward obscurity?
source
share