我需要根据用户的注册或不注册来设置我的应用的起始视图。 这将在AppDelegate中完成:在AppDelegate中切换查看(Swift)
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
if(isUserRegistrated() == true){
let vc : AnyObject! = self.storyboard.instantiateViewControllerWithIdentifier("isRegistrated")
self.showViewController(vc as UIViewController, sender: vc)
}
else{
let vc : AnyObject! = self.storyboard.instantiateViewControllerWithIdentifier("isNOTRegistrated")
self.showViewController(vc as UIViewController, sender: vc)
}
}
在这一点上,我得到了错误: “式的AppDelegate的值没有故事板的成员”
任何结论呢?
有您注册的故事板? –
我如何注册我的故事板? – Dareyou