Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why my code does not run the protocol method #86

Open
aizexin opened this issue Nov 8, 2017 · 0 comments
Open

Why my code does not run the protocol method #86

aizexin opened this issue Nov 8, 2017 · 0 comments

Comments

@aizexin
Copy link

aizexin commented Nov 8, 2017

Why my code does not run the protocol method

    func showMainVC() {
        let mainVC = MainNavigationViewController()
        let nav    = UINavigationController.init(rootViewController: mainVC)
        let leftViewController = LeftMenuViewController()
        let sideMenuController = LGSideMenuController.init(rootViewController: nav, leftViewController: leftViewController, rightViewController: nil)
        sideMenuController.isLeftViewSwipeGestureEnabled    = false
        sideMenuController.leftViewWidth                    = 190;
        sideMenuController.leftViewPresentationStyle        = .slideAbove;
        
        rootViewController = sideMenuController
        router = Router(store: mainStore, rootRoutable: RootRoutable(routable: rootViewController)) { state in
            state.select { $0.navigationState }
        }
        mainStore.dispatch(
            SetRouteAction(["LGSideMenuController", MainNavigationViewController.identifier])
        )
        
        self.window?.rootViewController = sideMenuController
        self.window?.makeKeyAndVisible()

    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant