During FS we had to do a blog post every other week, here's a throwback (and an update) to one I did on Launch Screens (AKA Splash Screens)
A launch screen, if you choose to create one, appears instantly while your app is loading. It gives the impression that your app is fast and responsive. We’ve all seen them and if you’re creating iOS applications there’s a huge possibility that you’ll be using them. Here’s a quick breakdown of how to create your launch screen and what you’ll need.
Here’s what you need to do:
- Under your General tab, make sure your ‘LaunchScreen’ file is chosen
- Navigate to ‘LaunchScreen.storyboard’
- Under the Attribute Inspector set ‘LaunchScreen.storyboard’ as the ‘initial View Controller’
- Hold up! Do you have your photo yet? If not go ahead and procure the photo you’d like to use for your launch screen.
- Navigate back to ‘LaunchScreen.storyboard” and in your view controller add an image view
- Don’t forget to add the constraints for this image view
- Finally, under your Attributes Inspector, set your image for your image view, as pictured below:
Make sure your Launch Screen is set as the initial view controller. Now, you should be all set to go! When you run your app your launch screen should appear for about two seconds before displaying your app.
- Apple says you shouldn’t put any text in your launch screen, but that rule isn’t enforced.
- Your launch app can be animated
- and you can customize the delay time
Original post on Medium.