阅读背景:

在app delegate中添加的视图控制器未显示

来源:互联网 
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)

    let auth: UIViewController =
        storyBoard.instantiateViewController(withIdentifier: "Auth") as UIViewController

    window?.rootViewController?.present(auth, animated: true, completion: nil)

    return true
}
func application(_ application: UIApplication, 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: