I know there are a few old discussions on this topic, which I read, and detailed instructions at https://docs.coronalabs.com/guide/distribution/launchFile/index.html, which I also read and followed to a “t”.
My problem is that I cannot get the splash screen to display in landscape - please see the following:
- I created 3 image assets and named them accordingly (Launch.png, Launch@2x.png, Launch@3x.png)
These images are rotated so that in portrait mode they should fill out the screen as if in landscape mode.
-
I downloaded the Xcode template app and added the assets to the Assets.xcassets folder
-
I exported the Launch Screen as an Interface Builder Storyboard Package file
-
I built the app for iOS
No matter what, when the app is launched the splash image always shows up in portrait mode. In the Xcode simulator upside down. On my iPhone the results are inconsistent - initially the splash screen was showing up (in portrait) and then it stopped altogether.
I tried playing with the build settings in Xcode but I suspect these to not affect the outcome.
My build.settings file is:
settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight", }, }, iphone = { plist = { CFBundleIconFiles = {}, UILaunchStoryboardName = "LaunchScreen", UIStatusBarHidden = true }, }, }
Thank you for any help.