If using launch image asset do I need to specify all the images if my app is only in portrait mode and only for iPhone? I.e. do I need the landscape images or the iPad images or will it work without them?
2 Answers
If your app is only in portrait mode and only for iPhone, then no you don't.
I would suggest using Storyboards instead of launch images. Here is how you could do so:
This is how:
Create a blank storyboard file named for example
MyLaunchScreen.storyboard
.Click on your project and go to your
Target Settings
and, on theGeneral
tab, select the storyboard as your Launch Screen File. Xcode will then add a correspondingUILaunchStoryboardName
key to your app’sInfo.plist
. When this key is present, Xcode will prioritize it over any launch images you might have set.Add a view controller scene to the storyboard, add UIImageViews or whatever you like. Adding some constraints will make this storyboard work on all devices without having to set images for all devices.
If you still do want to use images, here is how:
a. Click on the project target, in the General tab, set the Launch images source to be an image asset
b. In the launchImage image set, toggle the attributes inspector and set the device classes that you'd like to add launch images for. In your case just the iPhone portrait checkbox should be selected:

- 17,807
- 10
- 55
- 90
-
Why yes? You don't need all the images if your device support excludes iPad. – Martin Prusa Aug 28 '18 at 12:06
-
I misread the question, thank you for pointing that out. I've edited the answer – ielyamani Aug 28 '18 at 12:09
You can specify which images you'll add, it should reflect the project settings device support. So no, you don't all the images. And be careful with the retina and retina HD support, your layout could be down-scaled.

- 201
- 1
- 5