iOS swift app启动不走Main.storyboard

import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        window = UIWindow.init(frame: UIScreen.main.bounds)
        let vc = XYHelper.getViewController(storyboardStr: "Register", viewController: "RegisterCommonVC")
        window?.rootViewController = vc
        window?.makeKeyAndVisible()
        return true
    }

}

在这里插入图片描述

参考博客:
iOS 解决移除Main storyboard入口屏幕黑屏问题

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页