title: How do I detect orientation on app launch for splash screen animation on iPad!
body: <p>Hi I have an app and I have two *.pngs for default splash screen:</p>
  
  <p>Default-Landscape.png
  Default-Portrait.png</p>
  
  <p>What I want is to animate this default splash screen away when my app is loaded and ready to go. </p>
  
  <p>To achieve this I would normally present an UIImageView with either default-landscape or default-portrait (depending on the device orientation), keep it on screen for a certain time and then animate it away.</p>
  
  <p>My problem is that if I call <code>[[UIDevice currentDevice] orientation]</code> in </p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
  </code></pre>
  
  <p>The answer is always that the device is in portrait orientation even if I clearly have it in landscape. I tried this in simulator and on the device as well and the behaviour is the same.</p>
  
  <p>Does anyone know a fix for this or maybe some other approach?</p>
  
  <p>Thanks!</p>