mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-11 05:45:56 +10:00
not need startIntroStory
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user