//在AppDelegate中创建导航控制器,并设置它为根视图
let root:mainViewController = mainViewController()
let nav = UINavigationController(rootViewController: root)
self.window!.rootViewController = nav
//在AppDelegate中创建导航控制器,并设置它为根视图
let root:mainViewController = mainViewController()
let nav = UINavigationController(rootViewController: root)
self.window!.rootViewController = nav
本文标题:更改 swift 的根视图
本文链接:https://www.haomeiwen.com/subject/mixzvxtx.html
网友评论