Marino Faggiana hace 8 años
padre
commit
d6f792c671
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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
         }