Swift

swift 在window中实现跳转

2019-01-02  本文已影响0人  江河_ios

    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

    }

上一篇 下一篇

猜你喜欢

热点阅读