Guest User

Untitled

a guest
Nov 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
  2. // Override point for customization after application launch.
  3. self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
  4.  
  5. var nav1 = UINavigationController()
  6. var first = FirstViewController(nibName: nil, bundle: nil)
  7. nav1.viewControllers = [first]
  8.  
  9. var second = SecondViewController(nibName: nil, bundle: nil)
  10. var nav2 = UINavigationController()
  11. nav2.viewControllers = [second]
  12.  
  13. var tabs = UITabBarController()
  14. tabs.viewControllers = [nav1, nav2]
  15.  
  16. self.window!.rootViewController = tabs;
  17. self.window?.makeKeyAndVisible();
  18.  
  19. return true
  20. }
Add Comment
Please, Sign In to add comment