记录下在didFinishLaunchingWithOptions中:
self.window=UIWindow(frame:UIScreen.main.bounds)
self.window!.backgroundColor=UIColor.white
//设置root
letrootVC =MainViewController()
self.window!.rootViewController= rootVC
self.window!.makeKeyAndVisible()
记录下在didFinishLaunchingWithOptions中:
self.window=UIWindow(frame:UIScreen.main.bounds)
self.window!.backgroundColor=UIColor.white
//设置root
letrootVC =MainViewController()
self.window!.rootViewController= rootVC
self.window!.makeKeyAndVisible()
本文标题:swift纯代码启动
本文链接:https://www.haomeiwen.com/subject/wnnkhxtx.html
网友评论