小编Vin*_*ira的帖子

如何在 Scene Delegate iOS 13 中设置 rootViewController

在 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 }

    }
Run Code Online (Sandbox Code Playgroud)

uikit swift ios13

10
推荐指数
3
解决办法
1万
查看次数

标签 统计

ios13 ×1

swift ×1

uikit ×1