美文网首页Swift
swift 在window中实现跳转

swift 在window中实现跳转

作者: 江河_ios | 来源:发表于2019-01-02 14:59 被阅读0次

    func application(_application:UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey:Any]?) ->Bool{

        // Override point for customization after application launch.

      let avdioThan = SwiftAvdioThanViewController() //自己要跳转的类

       let nav =UINavigationController(rootViewController: avdioThan)

       window?.rootViewController=nav

        window?.makeKeyAndVisible()

        return true

    }

相关文章

网友评论

    本文标题:swift 在window中实现跳转

    本文链接:https://www.haomeiwen.com/subject/phuzlqtx.html