Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Menu in pushed ViewController #21

Closed
omarojo opened this issue Feb 14, 2014 · 3 comments
Closed

Open Menu in pushed ViewController #21

omarojo opened this issue Feb 14, 2014 · 3 comments

Comments

@omarojo
Copy link

omarojo commented Feb 14, 2014

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
Copy link
Contributor

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

  • (BOOL)slideNavigationControllerShouldDisplayLeftMenu
    {
    return YES;
    }

@nullproduction
Copy link
Contributor

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

@aryaxt
Copy link
Owner

aryaxt commented Feb 14, 2014

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

@aryaxt aryaxt closed this as completed Feb 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants