diff --git a/Yep/AppDelegate.swift b/Yep/AppDelegate.swift index 91f97702..5eb3ff20 100644 --- a/Yep/AppDelegate.swift +++ b/Yep/AppDelegate.swift @@ -65,8 +65,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let isLogined = YepUserDefaults.isLogined if !isLogined { - //startIntroStory() - startShowStory() } @@ -242,11 +240,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { window?.rootViewController = rootViewController } + /* func startIntroStory() { let storyboard = UIStoryboard(name: "Intro", bundle: nil) let rootViewController = storyboard.instantiateViewControllerWithIdentifier("IntroNavigationController") as! UINavigationController window?.rootViewController = rootViewController } + */ func startMainStory() { let storyboard = UIStoryboard(name: "Main", bundle: nil) diff --git a/Yep/Helpers/YepUserDefaults.swift b/Yep/Helpers/YepUserDefaults.swift index 8e5ce6de..4dd8b8ee 100644 --- a/Yep/Helpers/YepUserDefaults.swift +++ b/Yep/Helpers/YepUserDefaults.swift @@ -133,7 +133,7 @@ class YepUserDefaults { if let rootViewController = appDelegate.window?.rootViewController { YepAlert.alert(title: NSLocalizedString("Sorry", comment: ""), message: NSLocalizedString("User authentication error, you need to login again!", comment: ""), dismissTitle: NSLocalizedString("Relogin", comment: ""), inViewController: rootViewController, withDismissAction: { () -> Void in - appDelegate.startIntroStory() + appDelegate.startShowStory() }) } } diff --git a/Yep/ViewControllers/EditProfile/EditProfileViewController.swift b/Yep/ViewControllers/EditProfile/EditProfileViewController.swift index f261025a..491d4dfb 100644 --- a/Yep/ViewControllers/EditProfile/EditProfileViewController.swift +++ b/Yep/ViewControllers/EditProfile/EditProfileViewController.swift @@ -408,7 +408,7 @@ extension EditProfileViewController: UITableViewDataSource, UITableViewDelegate YepUserDefaults.cleanAllUserDefaults() if let appDelegate = UIApplication.sharedApplication().delegate as? AppDelegate { - appDelegate.startIntroStory() + appDelegate.startShowStory() } }, cancelAction: { () -> Void in