I have cloned a project in Swift however the project has all been done programmatically (without the use of interface builder). The app uses a Parse PFLogin and PFSign up.
I would like to use a UITabBarController (in interface builder) to manage transitions of the views. Below is the code for my didFinishLaunchingWithOptions in the AppDelegate:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
setupParse()
setupLayer()
//* Show View Controller
controller = LoginViewController()
controller.layerClient = layerClient
// Register for push
self.registerApplicationForPushNotifications(application)
self.window!.rootViewController = UINavigationController(rootViewController: controller)
self.window!.backgroundColor = UIColor.whiteColor()
self.window!.makeKeyAndVisible()
return true
}
Is setting the root view controller the same as setting as initial view controller?
What would be the best way to change this code to set the UITabBarController shown in my interface builder as the root.
Any help would be much appreciated.
Thanks
Marc