UIInterfaceOrientationUnknown for what purpose

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?

+4
source share
2 answers

UIInterfaceOrientationUnknown, UIApplication applicationDidLaunch appDelegate.

, Typhoon DI.

0

UIInterfaceOrientationUnknown , , ( , ).

0

Source: https://habr.com/ru/post/1543082/


All Articles