It might help you.
UIDeviceOrientation currentDeviceOrientation = [[UIDevice currentDevice] orientation];
سؤال
How can I find out the real iOS-Device orientation (not UIView orientation) even on a locked UIView?
المحلول
It might help you.
UIDeviceOrientation currentDeviceOrientation = [[UIDevice currentDevice] orientation];