Ability to keep same navigation bar (with Bar Button Item) on different ViewControllers?
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
@dwalintukan - Did you have any luck with this ? Trying the same..
@mdaymond Unfortunately not yet. I'll keep this thread posted if I figure out a solution.
I've made some small changes to accomplish this.
https://github.com/evrenesat/ENSwiftSideMenu/commit/9f31d1a7a7aaedf580b43d537f7f1816e9d134fd#diff-b15e75d0842ab5a522f93d2c4bd566f4
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).
@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.
For the people who didn't solve this problem, I have a working version here: https://github.com/robomotic/ENSwiftSideMenu Enjoy!
@evrenesat actually discovered that the code crashes when you use an icon, reported here https://github.com/evnaz/ENSwiftSideMenu/issues/74