Search code examples
objective-cdevice-orientation

real Device orientation even on locked UIView


How can I find out the real iOS-Device orientation (not UIView orientation) even on a locked UIView?


Solution

  • It might help you.

    UIDeviceOrientation currentDeviceOrientation = [[UIDevice currentDevice] orientation];