I do need to support both storyboard-based launch screens and 'traditional' launch images in a project.
Adding a Launch Screen storyboard with an UIImageView
pointing to the launch screen seemed like a straightforward way of doing so. Yet, Interface Builder cannot locate the launch image and cannot display it at all.
As all sizes differ also in content, will the storyboard even select the right image?
Reconstructing the images with size classes and constraints is not quite possible, so
TL;DR: How do use a Launch Storyboard that uses the corresponding images from the set of launch screen images?
I know this is an old question. Short answer is "you can't", but there is a workaround.
Here is how I do it:
Do not add the images you want to use to an asset catalog. Instead, add the images directly to your project and make sure you have them included in the target. You have to go back to the old "image.png", "[email protected]", "[email protected]" naming convention in order to supply different images for different screen sizes.
Hope that helps anyone who comes across this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With