且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在应用程序委托中的进程结束之前保持启动画面?

更新时间:2023-01-25 22:23:32

在您的应用委托处理完 didFinishLaunchingWithOptoins 之前,无法将启动画面保留在屏幕上.但是,您可以使应用程序的第一个视图与启动图像相匹配.然后,您可以在准备好显示内容时关闭第一个视图.

There is no way to keep the splash screen on screen until your app delegate is done processing didFinishLaunchingWithOptoins. You could, however, make the first view of your app match the launch image. Then, you can dismiss that first view when you're ready to show your content.