What settings can cause the black launch screen in this scenario? Thanks.
What settings can cause the black launch screen in this scenario? Thanks.
iOS cannot show some types of images. Have you checked if The png is fine for iOS?What settings can cause the black launch screen in this scenario?
Can you clarify how many images do you use? a png background in Main.storyboard, Launch Screen.png and IMG_1486.png?My Main.storyboard has a png background that works. When I change it to instead use the desired Launch Screen.png it also works, proving that the Launch Screen.png is good to use.
Sorry, but can you be more specific and precise? Storyboard does not have a property view which you can attach image.When I attach the intended Launch image to the Main storyboard view it shows correctly,
but it shows black when I attach it to the Launch storyboard view.
To find what, you should better describe what you have done.So, what settings can cause a png to show black?
When everything is working as expected, it is reasonable to omit something obvious. But in this case, you need to find what's wrong.I thought this part was obvious.
Selected 'LaunchScreen.storyboard' (no whitespace between Launch and Screen in my case) in the navigation area
Used + icon and dragged Image View into the View of the only ViewController of the 'LaunchScreen.storyboard'
Expanded the image view by dragging the four edges to cover whole screen.
Added an image to use as background into the project by dragging.
Within the Attribute Inspector of the image view, chose the image
The image I have chosen shows filling the view controller of Xcode or the simulator screen when run.
Very likely. I could have reproduced the black screen issue with my 3024x4032 jpg.So I conclude that there's a size limit (or some similar issue) to launch screen images. Is there?
Yes, at least that is what I experienced for the launch screen. It may not be the pixel size only, but also the weight of the image. In a project, I did reduce from a few MB image to a few 100 kB and everything worked fine (and it did occupy the full screen, even on iPad).there's a size limit