소스 검색

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
         }