Launch Image Confusion

Okay, so I’m a little confused about the Launch Image conventions. I’ve read lots of different places, both here at ansca and at apple and I’m more confused than when I started.

From what I gather at Apple, if I want to support all 4 orientations I should only need two files: Default-Portrait.png and Default-Landscape.png. However, when I just have those two files, the corona simulator does not display a launch image.

I also can’t find a way to have the simulator start in a different orientation than portrait. When I set a different “default” orientation in the build.settings file (like landscapeLeft), the simulator starts in landscape (It’s actually starting landscapeRight (the home button is on the left… and a quick print test indicates event messages show landscapeLeft is when the home button is on the right), but that’s a different issue) HOWEVER, the orientation event given on startup is still “portrait”, so everything is messed up internally (showing portrait orientation in a landscape simulator).

I have not done any testing on hardware to see if there are issues with this there.

But back to my original question: Do I really need to provide 4 (possibly 5) different splash screens or will 2 suffice that are just rotated correctly based on orientation? Splash screens at 768x1024 are pretty dang large (400k+).

Thanks,
Scott [import]uid: 5659 topic_id: 1001 reply_id: 301001[/import]

Hi Scott,

The problem you’re seeing where the simulator doesn’t show the launch image is a known bug (#187). If you build your app and run it on the device, it will recognize your Default-Portrait.png and Default-Landscape.png launch images.

And you’re correct, 2 images will suffice for all four orientations of the splash screen. But you can use 4 images if you want to have different images for all different orientations.

When the your app runs on the device it will display your splash screens exactly as it’s described in Apple’s documentation:

http://17.254.2.129/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/CoreApplication/CoreApplication.html#//apple_ref/doc/uid/TP40009370-CH6-SW6

Default-PortraitUpsideDown.png
Specifies an upside-down portrait version of the launch image. The height of this image should be 1004 pixels and the width should be 768. This file takes precedence over the Default-Portrait.png image file for this specific orientation.

Default-LandscapeLeft.png
Specifies a left-oriented landscape version of the launch image. The height of this image should be 748 pixels and the width should be 1024. This file takes precedence over the Default-Landscape.png image file for this specific orientation.

Default-LandscapeRight.png
Specifies a right-oriented landscape version of the launch image. The height of this image should be 748 pixels and the width should be 1024. This file takes precedence over the Default-Landscape.png image file for this specific orientation.

Default-Portrait.png
Specifies the generic portrait version of the launch image. The height of this image should be 1004 pixels and the width should be 768. This image is used for right side-up portrait orientations and takes precedence over the Default.png image file. If a Default-PortraitUpsideDown.png image file is not specified, this file is also used for upside-down portrait orientations as well.

Default-Landscape.png
Specifies the generic landscape version of the launch image. The height of this image should be 748 pixels and the width should be 1024. If a Default-LandscapeLet.png or Default-LandscapeRight.png image file is not specified, this image is used instead. This image takes precedence over the Default.png image file.

Default.png
Specifies the default portrait launch image. This image is used if a more specific image is not available.
It is recommended that you do not use this launch image for your iPad applications but that you use the more specific launch images instead. That way, you can continue to use this image file for the version of your application that runs on iPhone and iPod touch devices.

[import]uid: 5917 topic_id: 1001 reply_id: 2434[/import]

Excellent! Thank you very much for clarifying. Since my Portrait launch image is the same for both portraits, just rotated 180, I assume that will work just fine (having to get my stuff tested by a friend is KILLING me!).

Scott [import]uid: 5659 topic_id: 1001 reply_id: 2439[/import]