I have set the launch images in an asset catalog (LaunchImage
), which I've also set in the target's "General" tab in Xcode. The default LaunchScreen
file was being shown when running the app, but I read this post and I did what it is said there: to left empty the Launch Screen File
parameter both in "General" tab and in .plist
But now, instead of showing the appropiate launch image from catalog or the default one, I'm showing a black screen...
I'm supporting only iPhone, and iOS 7, 8 & 9.
What could I be missing?
Thanks
EDIT: could this be because of incorrect image sizes? For example, for the iPhone Portrait Retina HD 5.5 I have a file of size 1242 x 2208 and name [email protected]
, is that correct?
Well what I've noticed that when you create a new project by default you will get LaunchScreen.storyboard
as you Launch Screen Image.
But if you don't want to use LaunchScreen.storyboard
then what you do is remove LaunchScreen.storyboard
and tap on Use Asset Catalog.
But by default it will give you Brand Asset instead of Launch Image in Xcode Version 7.1.1.
Now click on the arrow besides Brand Asses/Launch Image. Xcode will navigate you to Assets.xcasets
folder.
Now click on + below to add App Icons & Launch Images.
From there you need to select New iOS Launch Image.
This is how your LaunchImage should be visible.
Now add the images according to size specified in the Apple Documentation. You can also get Launch Image Size from this url: LaunchImageSize
Now go application>Targets>General and in Launch Images Source select LaunchImage.
Here is the image with LaunchImage added in Assets.xcassets
.
Simulator Image on launching App.
Hope it helps in solving your problem.