Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch images not showing with Xcode 7

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?

EDIT 2: This is what I have in the target's "General" tab. target settings

like image 424
AppsDev Avatar asked Dec 05 '22 01:12

AppsDev


1 Answers

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. enter image description here

This is how your LaunchImage should be visible. enter image description here

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. enter image description here

Here is the image with LaunchImage added in Assets.xcassets. enter image description here

Simulator Image on launching App. enter image description here

Hope it helps in solving your problem.

like image 88
Dhaivat Vyas Avatar answered Dec 30 '22 07:12

Dhaivat Vyas