title: Get launch orientation of iPad app
body: <p>In my iPad app, I need to run some layout code to set the proper layout depending on the orientation. By default, the layout is configured for the landscape orientation, so in the case that the app starts in portrait mode, I need to take extra action to configure the views properly for display in portrait.</p>
  
  <p>In my <code>-application:didFinishLaunchingWithOptions:</code> method, I check the orientation using <code>[[UIDevice currentDevice] orientation]</code>. The problem here is that it always returns portrait even if the app is starting in landscape. Is there any way around this?</p>