I want to set the rootViewController in the app delegate ..
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDicti
You can do something like this.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool { var rootView: MyRootViewController = MyRootViewController() if let window = self.window{ window.rootViewController = rootView } return true }