在app委托中我放了一些函数,我希望启动画面等到appdelegate完成其功能.现在,我的应用程序立即运行初始视图控制器func和app委托func.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
let email = NSUserDefaults.standardUserDefaults().stringForKey("userEmail")
if let email = email {
reLogin()
}else{
buildNavigationDrawer()
}// I want this execute first and run the initial view controller's after
return true
}
Run Code Online (Sandbox Code Playgroud)
这该怎么做?或者这是关闭初始视图控制器的方法?