Tuesday, May 17, 2011

iOS orientation at launch

You can name your start up images specifically for the orientation and each one will be displayed for that orientation

Default-Portrait.png
Default-PortraitUpsideDown.png
Default-Landscape.png
Default-LandscapeLeft.png
Default-LandscapeRight.png

As far as the device is concerned the orientation is portrait while the application is launching. At some point after application:didFinishLaunchingWithOptions: it will detect the different orientation and call your shouldAutorotateToInterfaceOrientation: method and then your other view rotation methods, which you should handle as normal

Take a look at [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft] if you want to set a vie to landscape

No comments: