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
         }