title: How can I query the current orientation of an iPhone/iPad screen?
body: <p>I was curious to know if there is some way to determine the orientation of a screen on iPhone/iPad.  </p>
  
  <p>Currently I find myself setting a member variable when this message is called:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
     self.orientation = interfaceOrientation;
     return YES;
  }
  </code></pre>
  
  <p>... which feels like something I should be able to query as a state instead of having to track it when it changes.</p>