简体   繁体   中英

How to change Launch Screen Image on swift?

I'm fetching a splash image from the server. I want to apply the downloaded server image as my splash image. How can I change a splash image to an image downloaded from a server?

Splash images need to be defined at the time of app creation. The first screen you see is static and disappears after the program has loaded. However, after the program loads, you can keep any splash screen you want. It just is not possible from the start as the app as it hasn't started yet. So no app processes, like fetching a splash image, for example, can run before the app is live.

是的,您可以将 imageView 拖放到启动屏幕中,然后将出口设置为新文件 SplashViewController.swift。然后在您的控制器 Calss 中,您可以以编程方式设置图像。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM