Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch image or launch xib / storyboard?

Tags:

I'm trying to finish my first iOS app up for submission and I'm just getting really confused here. The documentation is telling me I need a launch image and giving me the dimensions for iPhone 6 and 6+ but then clearly says in a couple places that "The launch XIB or storyboard is required to support iPhone 6 sized apps."

I'm confused to no end here. Why am I including launch images if I need a "launch storyboard"? I haven't even figured out what a launch storyboard is yet...

like image 956
temporary_user_name Avatar asked Jan 17 '15 09:01

temporary_user_name


People also ask

What is launch storyboard?

The LaunchScreen. storyboard is an interface builder storyboard file that uses auto-layout and some basic constraints on the controls to adjust the display for all the supported devices. Perform this task in the copy of the DeploymentKitApp in Xcode on your computer.

Why is Main storyboard not showing up in Xcode?

You have SwiftUI enabled in your project, which does not use storyboards anymore. Your layout is inside the ContentView. swift file. If you do want to work the old way, with storyboards, you should uncheck 'Use SwiftUI' in the project creation screen.


2 Answers

If you're developing with Xcode 6 and for iOS 8 exclusively, then you should use launch storyboards, which avoid the need to provide several launch images at different sizes.

This storyboard is automatically generated by Xcode 6 when starting a new project, but you might have been using an older project template.

See here for how to create a launch storyboard using Xcode 6: http://oleb.net/blog/2014/08/replacing-launch-images-with-storyboards/

Please note that you can also use a regular, "single" XIB file instead of a whole storyboard if you like. I think the Xcode 6 project templates use XIB files for that purpose.

Unfortunately, if your app is also targeting older versions of iOS (even iOS 7), you'll have no other option than also including launch images for all iPhone devices (except iPhone 6, which doesn't run these versions of iOS, obviously). This is a pain, but Apple made the right move by providing this new feature for future developments.

like image 101
Romain Avatar answered Sep 20 '22 20:09

Romain


From your comment under @Romain's answer,

So to support everything, I need both.

No, if you need to support everything, use launch images. If your app ships with launch images and use them to display launch screen, then no need to provide launch xib/storyboard. An app can only use one way to display launch screen.

like image 43
wcd Avatar answered Sep 20 '22 20:09

wcd