Can somebody explain how Apple is handling autorotation in the default camera app?
- Apple doesn't enable rotation in actual sense, but understands that the device has rotated.
- It then changes the orientation of the UIControls on the screen and accommodates them to the new orientation, but the actual view doesn't autorotate.
I trying to fiddle with the iOS camera for a new app and have scratched my head whole day trying to understand if they are playing around with a view hierarchy or if they are handling custom notifications but I cannot understand.
I don't want auto-rotation; I simply want to know if user rotated his/her device - pretty much how Apple implements in their native camera app (with or without rotation disabled).
EDIT: Is there no other way to do it without Accelerometer?