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

Ability to keep same navigation bar (with Bar Button Item) on different ViewControllers? #24

Open
dwalintukan opened this issue Oct 31, 2014 · 7 comments

Comments

@dwalintukan
Copy link

Hello.

Thanks for making this library. It has been very helpful and looks/functions great!

I was just wondering if there was a way to keep the same Navigation Bar to appear on all View Controllers that are selectable from the SideMenu?

Basically, on your example, is there a way to keep the Navigation Bar of the View Controller #1 that has the Toggle button on the left so that View Controllers #2, 3, & 4 have that same Nav Bar?

I tried to add a Navigation Bar to a View Controller that isn't the Root View Controller of the Menu Navigation Controller, but it just added another Navigation Bar below the existing one.

Thanks,
Deric

@ghost
Copy link

ghost commented Nov 2, 2014

@dwalintukan - Did you have any luck with this ? Trying the same..

@dwalintukan
Copy link
Author

@mdaymond Unfortunately not yet. I'll keep this thread posted if I figure out a solution.

@evrenesat
Copy link

I've made some small changes to accomplish this.

evrenesat@9f31d1a#diff-b15e75d0842ab5a522f93d2c4bd566f4

@arntmo
Copy link

arntmo commented Dec 21, 2014

To do this just implement your menu controllers like this
class MenuXViewController: UIViewController
When you create the segue select show and not root view controller.

PS: Note that its the UIViewController that is extended in the menu controller. If you want to use another type you need to add support for this (concept will be the same as for UIViewController).

@sunny596
Copy link

@evrenesat Thanks so much !
Any idea on how to get that menu at launch time ?
I can only see it once something is selected in the menu and navigation occurs.

@robomotic
Copy link

For the people who didn't solve this problem, I have a working version here:
https://github.com/robomotic/ENSwiftSideMenu
Enjoy!

@robomotic
Copy link

@evrenesat actually discovered that the code crashes when you use an icon, reported here #74

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

5 participants