Wednesday, February 23, 2011

iPad Launch screen image

With the usual requirement every iPad application is supposed to support all the orientations available, which a nice to have feature. In general the applications using a launch image for splash screen.

To supply an launch image, we use an image named as Default.png and is added to the resource folder of the application, and this image is loaded as launch image when the application is launched.
   
Since, we are using a single image for all orientations, there may be a case where the splash image me look stretched, blur, crisped (depending upon the image used).

This happens due to the different screen size of the device at different orientations. Landscape: 1024w x 748h  and Portrait: 768w x 1004h.
   
To get this thing to work we can create images with names and dimensions as mentioned below, and add them to the application resource folder (no code required).

Default-Portrait.png    768w x 1004h
Default-PortraitUpsideDown.png    768w x 1004h
Default-Landscape.png    1024w x 748h
Default-LandscapeLeft.png    1024w x 748h
Default-LandscapeRight.png    1024w x 748h
Default-PortraitUpsideDown.png    1024w x 748h


Clean the project by pressing Command+shift+k or from Build>Clean.
All set to go now, run the application.

No comments:

Post a Comment