iphone - Get launch orientation of iPad app -
In my iPad app, I need to run some layout code to set up the proper layout based on orientation. , The layout is configured for landscape orientation, so when the image starts in portrait mode, I need to take additional action to properly configure the ideas for the display in the portrait.
My - Application: didFinishLaunchingWithOptions:
method, I check the orientation using the [[UIDevice currentDevice] orientation]
. The problem here is that this app is starting in the scenario, even if it always gives a picture. Is there a way around it?
This is expected behavior Question:
Note: At the launch time, the app should always set its interface in a Portrait Orientation.
After application: didFinishLaunchingWithOptions:
The method uses the application controller rotation mechanism described above to return the ideas for suitable orientation before returning in the window.
In other words, as far as the application is launched, the device orientation is is the portrait is concerned at some point after the application: done Launchingwith option:
This will detect different orientation and call your shouldAutorotateToInterfaceOrientation:
method and then your, which you should handle normally.
Comments
Post a Comment