What are the differences between the two and in what cases should I use one over the other?
typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
UIInterfaceOrientationUnknown = UIDeviceOrientationUnknown,
UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait,
UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight,
UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft
}
see from the above, difference at UIInterfaceOrientationLandscapeLeft equal to UIDeviceOrientationLandscapeRight,UIInterfaceOrientationLandscapeRight equal to UIDeviceOrientationLandscapeLeft. when device landscapeLeft,interface should rotate to right to keep content not reverse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With