title: iOS device orientation disregarding orientation lock
body: <p>I want to query the orientation the iPhone is currently in.  Using</p>
  
  <pre><code>[UIDevice currentDevice].orientation
  </code></pre>
  
  <p>works as long as the device isn't orientation-locked.  If it is locked, however, it always responds with the locked orientation, not with the actual orientation of the device.</p>
  
  <p>Is there a high-level way to get the actual device orientation?</p>