Default.png in a universal app? (iPhone/iPad)

I'm building a single corona project for iPhone and iPad (it will be a universal app), i have to create a Default.png file in the main folder to act as a splash screen. Does anyone know how to include different resolution Default.png files for diferent devices?

I'm not using the default scalling system of Corona SDK (the one which uses 2@ suffix).

Thank you!

There is a naming convention for iPad launch images, one for each orientation.
The screen size of the iPad is 768×1024, however Apple's recommendations are that the 20 pixel status bar region should not be included in the launch image.

Launch image name	        Dimensions
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

* If you have not specified a Default-PortraitUpsideDown.png file, this file will take precedence.

** If you have not specified a Default-LandscapeLeft.png or Default-LandscapeRight.png image file, this file will take precedence.

The Default.png file will be used if no others are specified. Although it's best to include all the relevant images for the orientations your app supports.

@ingemar - This INFO is very useful!! I did not even know about it! Many Thanks mate!

PS: Looks like you`re on Fire in the Community! Well Done! :)

Cheers,
Rodrigo.

Thanks a lot ingemar!

But is not about orientations, is about different resolutions.

Actually i've a Default.png for iPad, as I started developing my app in iPad. Now I want to change the App to be universal, but the default screen is not displayed on the iPhone (because is a Default.png with 1024x768, for iPad).

I wonder how to create different default.png files for different resolutions.

It`s also a good question. :\

Aha!

The Default.png should be 320x480.
You can also have a Default@2x.png 640x960 if you decide to use dynamic scaling.
This Default.png will automatically be used for iPhone/iPod Touch

Then for the iPad you create one or more of the files I mentioned above.
Personally I just use the Default-Landscape.png if my app is landscape only.

Thank you @ingemar!

Thank You!

Cheers,

Oh...one thing I forgot to mention about the iPad images is that even though Apple recommends to exclude 20 pixels from the launch image height, you might see a "jump" when the app switches to your main screen if you have a hidden status-bar on launch.

This is mostly noticeable if you if use a launch image with graphics in fixed positions that should remain in the same position when the app switches to the main screen.
In this case you just need to make a launch image that includes the extra 20 pixels. (1024x768 for landscape)

Got it!

Cheers,

views:1326 update:2012/1/1 13:29:50
corona forums © 2003-2011