Hi,
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.
In my -application:didFinishLaunchingWithOptions:
method, I check the orientation using [[UIDevice currentDevice] orientation]
. The problem here is that it always returns portrait even if the app is starting in landscape. Is there any way around this?