Marino Faggiana 8 лет назад
Родитель
Сommit
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
         let toView = viewController.view
         
         
         if (fromView == toView) {
         if (fromView == toView) {
+            
+            if let vc = viewController as? UINavigationController {
+                vc.popToRootViewController(animated: true);
+            }
+            
             return false
             return false
         }
         }