【发布时间】:2020-01-30 22:51:57
【问题描述】:
在 UIKit iOS 13 更改之前,如何在 SceneDelegate 设置 rootViewController?
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
@available(iOS 13.0, *)
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
}
【问题讨论】: