swift - 如何使用应用程序委托(delegate)以编程方式控制启动图像?

标签 swift xcode

<分区>

有没有办法在应用程序首次启动时将 HUD 加载到 LaunchImage 中。进度 HUD 的链接称为 ACProgressHUD:https://github.com/ErAbhishekChandani/ACProgressHUD

如果没有,有没有一种方法可以控制启动图像以及它应该使用应用委托(delegate)显示什么

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:

最终我想为启动图像实现一个加载动画,这些只是我认为可以完成的一些方法。

最佳答案

你不能这样做。启动屏幕在应用程序仍在加载时快速显示,给人以响应 swift 印象。您可以在 Interface Builder 中设置它们的样式,但您不能运行任何代码。

当然,您可以在 didFinishLaunchingWithOptions 方法中控制在此之后发生的事情。 This answer显示了执行此操作的一些方法。


感谢@the4kman 提供链接。

关于swift - 如何使用应用程序委托(delegate)以编程方式控制启动图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51527793/

相关文章:

ios - PubNub 如何配置 ios 基本聊天应用程序

ios - xcode 在 iPhone 设备上运行应用程序时出错

c++ - Openfeint 导致了这个 : ISO C++ forbids of declaration 'myClass' with no type

ios - XCode 单元测试 : Error while reading test scope bundle

ios - 默认详细 View uisplitview

ios - 处理大量的 Swift 类

ios - 私有(private)快速协议(protocol)是否可能?

ios - +entityForName : could not locate an entity named 'Dogs' in this model.

ios - 如何为@property 变量分配空间

iphone - 实时 GKMatch 断开连接问题