romaonthego / REFrostedViewController

iOS 7/8 style blurred view controller that appears on top of your view controller.
MIT License
2.96k stars 494 forks source link

Menu view controller displayed under navigation bar #23

Closed damienrambout closed 10 years ago

damienrambout commented 10 years ago

Hi,

I have an application that uses the following navigation flow:

  1. REFrostedViewController where the content view is a UINavigationController, the menu is correctly displayed (on top of everything) on the left side
  2. Another REFrostedViewController is pushed in the content view controller, with a menu on the right side. This menu is displayed under the navigation bar.

When the navigation bar is not translucent, this is acceptable, but this is not working when the bar is translucent because the menu content is under the translucent bar.

Could you make sure (or add a BOOL property to make sure) the menu is always displayed on top of everything?

Anyhow, great control, good job!

romaonthego commented 10 years ago

That's because UINavigationBar is on always top of any views that are subviews of a navigation controller view. This is an expected behavior.

damienrambout commented 10 years ago

Thank for your quick answer. I know this is an expected behavior for a UINavigationController, but, as we are not using really regular UI behaviors with sliding menus, I was expecting the sliding menu to always display on top of everything (like the top view of the key window). Otherwise, the user experience is not always the same with sliding menus. This force us, developers, to always use the REFrostedViewController as the root view controller of the application.

So you confirm you won't ever support this kind of behavior?

romaonthego commented 10 years ago

Yes, it should be a root controller in 100% of cases. Anyway, probably you don't want to display 2 frosted views on top of each other, because of bad user experience. The best solution here would be to swap menu views, before displaying the view controller on either side. I've seen your another issue where you would like to have an ability to reassign menu view controller, it's a legit concern and I will address it later.

damienrambout commented 10 years ago

Alright thank you, I'm looking forward to it!