Commit 2e12ed06 authored by tayathorn's avatar tayathorn
Browse files

:: แก้ Quick Guide ::

Showing with 8 additions and 8 deletions
+8 -8
......@@ -147,7 +147,7 @@ class JTMMainQuickGuideViewController: UIViewController , UIPageViewControllerDa
@IBAction func pageContentViewSkipButtonClick() {
if !NSUserDefaults.standardUserDefaults().boolForKey(HAS_SEEN_QUICK_GUIDE) {
NSUserDefaults.standardUserDefaults().setBool(true, forKey: HAS_SEEN_QUICK_GUIDE)
maintenanceView?.presentPreLoad(self)
maintenanceView?.checkServiceAndPresentPreload(self)
} else {
self.dismissViewControllerAnimated(true, completion: nil)
}
......
......@@ -171,7 +171,11 @@ class JTMMaintenaceViewController : JTMBaseViewController {
func skipMaintenanceMode() {
tryAutoLogin()
initialMapEngine()
checkPreloadService()
if self.checkHasSeenQuickGuide() {
self.presentQuickGuide()
} else {
checkServiceAndPresentPreload(self)
}
}
func setMainteneContent() {
......@@ -206,14 +210,10 @@ class JTMMaintenaceViewController : JTMBaseViewController {
}
// MARK : Connect Service Preload
func checkPreloadService() {
func checkServiceAndPresentPreload(currentView: UIViewController) {
connectServicePreload({ () -> Void in
if(self.checkPreloadData()){
if self.checkHasSeenQuickGuide() {
self.presentQuickGuide()
} else {
self.presentPreLoad(self)
}
self.presentPreLoad(currentView)
}else{
self.presentMainView()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment