Launch Images not Showing in Correct Orientation on iPhone

I created a series of launch images with help from the project build settings section of the documentation for my game for iOS and my app is in landscape mode only. The launch image shows perfectly on the iPad, but on the iPhone 4s it is shown in portrait mode cropped and it’s a disaster, could anyone please let me know what I have done wrong? Thanks. 

UILaunchImages = {

{

          [“UILaunchImageMinimumOS”] = “7.0”,

          [“UILaunchImageName”] = “Default-Landscape-568h@2x”,

          [“UILaunchImageOrientation”] = “LandscapeLeft”,

          [“UILaunchImageSize”] = {1136, 640}

},

{

          [“UILaunchImageMinimumOS”] = “7.0”,

          [“UILaunchImageName”] = “Default-Landscape-568h@2x”,

          [“UILaunchImageOrientation”] = “LandscapeRight”,

          [“UILaunchImageSize”] = {1136, 640}

},

{     --iPad

          [“UILaunchImageMinimumOS”] = “7.0”,

          [“UILaunchImageName”] = “Default-Landscape”,

          [“UILaunchImageOrientation”] = “LandscapeLeft”,

          [“UILaunchImageSize”] = {1024, 768}

},

{

          [“UILaunchImageMinimumOS”] = “7.0”,

          [“UILaunchImageName”] = “Default-Landscape”,

          [“UILaunchImageOrientation”] = “LandscapeRight”,

          [“UILaunchImageSize”] = {1024, 768}

},

{     --iPhone4

          [“UILaunchImageMinimumOSVersion”] = “7.0”,

          [“UILaunchImageName”] = “Default”,

          [“UILaunchImageOrientation”] = “LandscapeLeft”,

          [“UILaunchImageSize”] = “{480, 320}”

},

{

            [“UILaunchImageMinimumOSVersion”] = “7.0”,

            [“UILaunchImageName”] = “Default”,

            [“UILaunchImageOrientation”] = “LandscapeRight”,

            [“UILaunchImageSize”] = “{480, 320}”

},

{     --iPhone5

            [“UILaunchImageMinimumOSVersion”] = “7.0”,

            [“UILaunchImageName”] = “Default-568h”,

            [“UILaunchImageOrientation”] = “LandscapeLeft”,

            [“UILaunchImageSize”] = “{568, 320}”

},

{

            [“UILaunchImageMinimumOSVersion”] = “7.0”,

            [“UILaunchImageName”] = “Default-568h”,

            [“UILaunchImageOrientation”] = “LandscapeRight”,

            [“UILaunchImageSize”] = “{568, 320}”

},

{     --iPhone6

            [“UILaunchImageMinimumOSVersion”] = “8.0”,

            [“UILaunchImageName”] = “Default-667h”,

            [“UILaunchImageOrientation”] = “LandscapeLeft”,

            [“UILaunchImageSize”] = “{667, 375}”

},

{

            [“UILaunchImageMinimumOSVersion”] = “8.0”,

            [“UILaunchImageName”] = “Default-667h”,

            [“UILaunchImageOrientation”] = “LandscapeRight”,

            [“UILaunchImageSize”] = “{667, 375}”

},

{     --iPhone6 plus

            [“UILaunchImageMinimumOSVersion”] = “8.0”,

            [“UILaunchImageName”] = “Default-736h”,

            [“UILaunchImageOrientation”] = “LandscapeLeft”,

            [“UILaunchImageSize”] = “{736, 414}”

},

{

            [“UILaunchImageMinimumOSVersion”] = “8.0”,

            [“UILaunchImageName”] = “Default-736h”,

            [“UILaunchImageOrientation”] = “LandscapeRight”,

            [“UILaunchImageSize”] = “{736, 414}”

},

},

Hi @smokrenko,

My first recommendation is that you follow the example in our guide exactly as shown, or as close as you possibly can. In my experience, this setup is almost agonizingly nitpicky, i.e. specifying the width and height values in the proper order (don’t flip width/height), put those “tables” within quotes, etc. etc. One little mis-step here and the whole thing is liable to blow up. :confused:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#ios-1

Take care,

Brent

Keep in mind, the iPhones with the exception of the iPhone 6 plus only uses the “Portrait” version. At the time of iOS 8’s first release, there was a bug that required you to also specify landscapeLeft and landscapeRight and you had to point it at the portrait version.

The idea of landscape versions exists only for iPads and the 6 plus.

Rob

I still can’t seem to get it to work, I just re-made the portrait Icons sideways so that It would show correctly in the landscape left orientation for all of the older iPhones.

Thanks for your help.

Like I said on all iPhones except the 6 plus, it will only use the portrait file but you still have to include the landscape references in the build.settings file, just point them all to the portrait file.

Rob

Hi @smokrenko,

My first recommendation is that you follow the example in our guide exactly as shown, or as close as you possibly can. In my experience, this setup is almost agonizingly nitpicky, i.e. specifying the width and height values in the proper order (don’t flip width/height), put those “tables” within quotes, etc. etc. One little mis-step here and the whole thing is liable to blow up. :confused:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#ios-1

Take care,

Brent

Keep in mind, the iPhones with the exception of the iPhone 6 plus only uses the “Portrait” version. At the time of iOS 8’s first release, there was a bug that required you to also specify landscapeLeft and landscapeRight and you had to point it at the portrait version.

The idea of landscape versions exists only for iPads and the 6 plus.

Rob

I still can’t seem to get it to work, I just re-made the portrait Icons sideways so that It would show correctly in the landscape left orientation for all of the older iPhones.

Thanks for your help.

Like I said on all iPhones except the 6 plus, it will only use the portrait file but you still have to include the landscape references in the build.settings file, just point them all to the portrait file.

Rob