Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use vector artwork for iOS launch image in asset catalog?

Is this possible? It looks like I am going to need 9 different launch images, so replacing them all would be a bit of a chore.

like image 224
William Jockusch Avatar asked Oct 10 '14 20:10

William Jockusch


1 Answers

Unfortunately, I think you can't use vector artwork for ALL of your LaunchImages... ... but there's an approach which makes our lives easier: the new LaunchScreen.xib.

In File > New, you create a new Launch Screen in User Interface: Creating Launch Screen

Now, you can set the new Launch Screen File in your project's target: Setting your new Launch Screen

In this LaunchScreen.xib you can put your vector artwork, using AutoLayout for adapt your vector to all screen sizes.

Why I told that you can't use vector artwork for ALL sizes? Because it only works in iOS 8+. For iOS 7, I created the PNG image and I put this in LaunchImage asset catalog, in the old way. LaunchImage iOS 7

PS: I tested this approach only in simulator.

like image 188
Thomás Pereira Avatar answered Nov 15 '22 10:11

Thomás Pereira