From fa6f9eb9e15cebf9403bde6bee657dc14af70943 Mon Sep 17 00:00:00 2001 From: andrei Date: Wed, 4 Jan 2017 17:54:29 +0900 Subject: [PATCH] make tab bar controller --- Pod/Classes/UISideMenuNavigationController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pod/Classes/UISideMenuNavigationController.swift b/Pod/Classes/UISideMenuNavigationController.swift index 3e09fd9..ac6f352 100644 --- a/Pod/Classes/UISideMenuNavigationController.swift +++ b/Pod/Classes/UISideMenuNavigationController.swift @@ -126,7 +126,7 @@ open class UISideMenuNavigationController: UINavigationController { return } - guard let presentingViewController = presentingViewController as? UINavigationController else { + guard let presentingViewController = (presentingViewController as? UITabBarController)?.selectedViewController as? UINavigationController else { print("SideMenu Warning: attempt to push a View Controller from \(self.presentingViewController.self) where its navigationController == nil. It must be embedded in a Navigation Controller for this to work.") return }