美文网首页
swift纯代码启动

swift纯代码启动

作者: 迎风尿一尺 | 来源:发表于2017-07-06 23:58 被阅读78次

记录下在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