aryaxt / iOS-Slide-Menu

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook
Other
1.53k stars 359 forks source link

Open Menu in pushed ViewController #21

Closed omarojo closed 10 years ago

omarojo commented 10 years ago

Is it possible to open menus, with sliding VC content or NavBar, in a view controller that has being pushed ?? I don't want to place a Menu button (///) in order to be able to open menus, I want the user to be able to open the menu no matter where it is.. or how deep in the navigation stack it is.

nullproduction commented 10 years ago

I asked a similar question, this is not possible, you need to add each controller method

nullproduction commented 10 years ago

You can self-correct logic in method shouldDisplayMenu: forViewController: ( https://github.com/aryaxt/iOS-Slide-Menu/blob/master/SlideMenu/Source/SlideNavigationController.m#L338 )

aryaxt commented 10 years ago

just subclass a UIViewController implement the delegate method as suggested by nullpointer, then in viewDidLoad you can remove the menu item or replace it. Have all your other ViewControllers inherit from the base you just create.

Slide functionality works in all viewcontrollers in the stack but it won't work on modals