可以在运行时更改 AppDelegate

Possible to change AppDelegate at runtime

是否可以在运行时将 UIApplication.delegate 属性 更改为另一个实现 UIApplicationDelegate 协议的 class,以便从那时起在新的 [=13] 上调用 UIApplicationDelegate 函数=]?

您可以使用 [UIApplication sharedApplication].delegate = instanceOfDifferentClass 非常简单地更改它。