title: UIInterfaceOrientation on launch
body: <p>I'm not sure if this a bug or something I might do wrong, but when I launch my application in portrait mode without rotating the device and I run this code</p>
  
  <pre><code>if(UIInterfaceOrientationIsPortrait([[UIDevice currentDevice] orientation])) {
      NSLog(@"Portrait");
  } else {
      NSLog(@"Landscape");
  }
  </code></pre>
  
  <p>I return <code>Landscape</code>, after I rotate the device and check again it returns the correct value, so it seems that when you first launch the returned orientation is wrong.
  Is this a known issue?</p>
  
  <p>EDIT:</p>
  
  <p>Even when I run this code in my AppDelegate it's returning <code>Landscape</code>, even when I launch in Portrait mode</p>
  
  <pre><code>if(UIInterfaceOrientationIsPortrait([[UIDevice currentDevice] orientation])) {
      NSLog(@"Portrait");
  } else {
      NSLog(@"Landscape");
  }
  </code></pre>