瀏覽代碼

clear code

Marino Faggiana 8 年之前
父節點
當前提交
d6f792c671
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      iOSClient/Main/CCMainTabBarController.swift

+ 5 - 0
iOSClient/Main/CCMainTabBarController.swift

@@ -39,6 +39,11 @@ class CCMainTabBarController : UITabBarController, UITabBarControllerDelegate {
         let toView = viewController.view
         
         if (fromView == toView) {
+            
+            if let vc = viewController as? UINavigationController {
+                vc.popToRootViewController(animated: true);
+            }
+            
             return false
         }