Disclaimer :This is not a duplicate of any question.I have gone through this question before posting here.
Normally we use device orientation property or status bar property to find out the actual orientation of the device. But i am not getting the correct orientation when orientation lock is enabled on the device. I am always getting the orientation value as portrait even though i turn the device into landscape mode.
Is there a way to find out the actual orientation of the device when the orientation lock is enabled on the device.
Note : UIAccelerometer is now deprecated. Any help with respect to CoreMotion is welcome.