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

right slide menu button #17

Closed
Phloxx1 opened this issue Feb 23, 2014 · 1 comment
Closed

right slide menu button #17

Phloxx1 opened this issue Feb 23, 2014 · 1 comment

Comments

@Phloxx1
Copy link

Phloxx1 commented Feb 23, 2014

Okay so I've erased the code to be able to add my own button in storyboard..
now how do I connect the button that I've created to open up the right slide menu?

In AMSlideMenuContentSegue.m I've erased this code

}

if (mainVC.rightMenu)
{
    UIButton *rightBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [mainVC configureRightMenuButton:rightBtn];
    [leftBtn addTarget:mainVC action:@selector(openrightMenu) forControlEvents:UIControlEventTouchUpInside];

    navItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightBtn];
}

then I added my custom Button in storyboard. I'm having problems connecting it to open up the right slide menu..

any ideas?

@arturdev
Copy link
Owner

In your button's action

- (void) openrightMenu:(id)sender
{
       [[self mainSlideMenu] openRightMenu];
}

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

2 participants