BTNavigationDropdownMenu
BTNavigationDropdownMenu copied to clipboard
Menu is hidden behind the viewcontroller
I have one ViewController in a NavigationController where the menu is not working. Other viewcontrollers are working as aspected. Not sure what happens yet but Reveal shows me this:
And the fix was to add the menuWrapper to the navigationController and not to the window (#251).
// Add Menu View to container view
//window.addSubview(self.menuWrapper) //COMMENT THIS
self.navigationController?.view.addSubview(self.menuWrapper) //FIX
I tried to reproduce in a sample project but no luck, think my project changes or uses the keywindow.
Any idea? And does the fix seems to be ok?
@SjoerdPerfors oooooh...thank you so much! i was having the exact same issue and your fix solved it. oh joy. thank you. :)
@SjoerdPerfors Maybe I need to add a view controller as a params where the menuWrapper should add to. Because when you add menuWrapper to self.navigationController, the dark mask cannot cover the tab bar (in case your app is using tab bar). Thanks for bring it up.
Yep! My app has a tabbar in these screens.