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

bar button item in different view controller #9

Open
steve870211 opened this issue Jun 14, 2016 · 1 comment
Open

bar button item in different view controller #9

steve870211 opened this issue Jun 14, 2016 · 1 comment

Comments

@steve870211
Copy link

Hello,
How can I call the menu with different view controller's bar button item?
If the root view controller is A, A and B controller with same Navigation, so I can use swipe to call the menu.
After that, I use storyboard add a bar button item on B controller but I can't let it call the menu controller now.

thank you!

@vinnyoodles
Copy link
Owner

vinnyoodles commented Jun 15, 2016

So you are trying to add a button in the B controller to move back to the root controller, is that correct? You should be able to use the toggle(direction: String) method with the correct direction depending on your current state.

If you want something more absolute, you can use toMain(). But remember that this method does not contain any animations.

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

2 participants