I wonder how to perceive orientation changes even if the device's current orientation is locked (by double clicking home button and pressing the grey orientation lock icon)
However, I've seen video taking apps (UIImagePickerController
) that can perceive orientation changes and change its control orientation.
I know that for detecting the change, I can use:
- shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
- UIDeviceOrientationDidChangeNotification
but neither of those methods work if the orientation of the device is locked.