BTNavigationDropdownMenu icon indicating copy to clipboard operation
BTNavigationDropdownMenu copied to clipboard

Menu is hidden behind the viewcontroller

Open SjoerdPerfors opened this issue 9 years ago • 3 comments

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:

screen shot 2015-11-30 at 12 53 09

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 avatar Nov 30 '15 12:11 SjoerdPerfors

@SjoerdPerfors oooooh...thank you so much! i was having the exact same issue and your fix solved it. oh joy. thank you. :)

jakeatwork avatar Mar 15 '16 04:03 jakeatwork

@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.

PhamBaTho avatar Apr 18 '16 05:04 PhamBaTho

Yep! My app has a tabbar in these screens.

SjoerdPerfors avatar Apr 18 '16 07:04 SjoerdPerfors