I have an existing iOS app with a single target and a corresponding LaunchScreen.storyboard
.
In the same Xcode project I have created a new target (e.g newtarget
) by duplicating the initial one. I also have created a new launch screen LaunchScreen-newtarget.storyboard
(added as a resource of this target) which is referenced in the new target's plist file (in Launch screen interface file base name
).
But I only see a black screen instead of the launch screen when running this target.
How can I use a separate launch screen for my new target?
A splash screen, also known as a launch screen, is the first screen that a user sees when opening your app, and it stays visible while the app is loading. You can control when the splash screen disappears by using the native SplashScreen API.
Every iOS app must provide a launch screen, a screen that displays while your app launches. The launch screen appears instantly when your app starts up and is quickly replaced with the app's first screen.
You need to make sure the launch screen is added as a resource for the new target and then update the UILaunchStoryboardName
key (also known as Launch screen interface file base name
) in the new target's plist file to say LaunchScreen-newtarget
.
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