not need startIntroStory

This commit is contained in:
nixzhu
2015-09-23 14:46:57 +08:00
committed by nixzhu
parent cb92d78b63
commit 2b826018bd
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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()
})
}
}
@@ -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