orientation lock button

Hi all,

Is there a way to Get iPad "Orientation Lock" flag (enabled by side button) programmatically.

Thanks in advance

If you want to read the state of the button, it appears not to be possible.

http://stackoverflow.com/questions/5410763/detect-ios-device-orientation-lock

orientation lock button
 
 
Q