Is there a way to code LaunchScreen programmatically

I use Xcode7 and Swift with Storiesboards. When I open LaunchScreen.storyboard and I try to install a custom class on it, Xcode complains that there can be no custom class on the LaunchScreen storyboard. So my question is is there any way to programmatically encode LaunchScreen, since I would like to avoid dragging and dropping elements on it using IB.

+5
source share
1 answer

No. A start-up screen is displayed before the application starts execution to ensure that the Springboard transitions to your application at boot time.

You can use a fixed image or use a simple scene for storyboards using only the standard, static user interface elements - labels and images.

This script script is actually loaded and displayed by the OS, so there would be a security risk so that your code can execute in this context.

+15
source

Source: https://habr.com/ru/post/1232578/


All Articles