Splash Screen Orientation Issue on iOS

I have a Splash Screen Orientation issue on iPhone & iPod.

The Splash always open in one direction only whatever is the device orientation at that moment.

My App support only Landscape orientation, so these the build.settings i have used are

orientation = {

    default = “landscapeRight”,

    supported = { “landscapeRight”, “landscapeLeft” }

},

I have followed these standard to add splash screen

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#project-build-settings

The set of splash images used are

Default-568h@2x.png

Default-Landscape.png

Default-Landscape@2x.png

Default.png

Default@2x.png

It works fine on iPad but the problem arises only on iPhone & iPod

Any one having the same issue, or have any idea to resolve it. please suggest.

Hi @satinder.singh,

I believe the directional launch images such as “Default-Landscape” are only for iPad. iPhone/iPod launch images can only be in portrait. So, if your app is landscape, then you must create a “Default.png” and “Default@2x.png” portrait launch image that appears sideways on-screen.

Have a look at the sample project in your local Corona SDK application folder:

CoronaSDK > SampleCode > Media > StreamingVideo

This should exhibit an example of a default launch image that is “portrait”, but its contents are sideways since it’s a landscape-only app.

Let me know if this helps or not,

Brent

Brent is right. Apple only supports landscape splash screens on the iPad.  Most landscape only apps have their Default.png be oriented in such a way that it looks right when the device is horizontal.  However, there is no way to know if your landscapeLeft or landscapeRight with this method.

The best thing to do is not include a launcher image (or a solid black one) other than the required Default-568h@2x.png file (which could also be solid black).

Then early in your main.lua show your own splash screen that would be oriented along with the device.

Rob

Hi @satinder.singh,

I believe the directional launch images such as “Default-Landscape” are only for iPad. iPhone/iPod launch images can only be in portrait. So, if your app is landscape, then you must create a “Default.png” and “Default@2x.png” portrait launch image that appears sideways on-screen.

Have a look at the sample project in your local Corona SDK application folder:

CoronaSDK > SampleCode > Media > StreamingVideo

This should exhibit an example of a default launch image that is “portrait”, but its contents are sideways since it’s a landscape-only app.

Let me know if this helps or not,

Brent

Brent is right. Apple only supports landscape splash screens on the iPad.  Most landscape only apps have their Default.png be oriented in such a way that it looks right when the device is horizontal.  However, there is no way to know if your landscapeLeft or landscapeRight with this method.

The best thing to do is not include a launcher image (or a solid black one) other than the required Default-568h@2x.png file (which could also be solid black).

Then early in your main.lua show your own splash screen that would be oriented along with the device.

Rob