Skip to content

iOS View Controllers

Kevin Leong edited this page Sep 11, 2016 · 7 revisions

View Controllers

Changing the root view controller

// in AppDelegate#didFinishLaunchingWithOptions
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)

let tabBarViewController = UITabBarController()

if let window = self.window {
    window.rootViewController = tabBarViewController
    window.makeKeyAndVisible()
}

TabBarViewController

References

Clone this wiki locally