romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Open Side Menu on UIButton Click event.

avinashvaghasiya opened this issue · comments

Hello,

I am Add Button And Create Action.
How to Open Side Menu on UIButton Click event.
i am not use bar Button.

simulator screen shot 12-jul-2016 12 42 30 pm

commented

in storyboard, cirl+ press the menu button , drag and release into this view controller and choose "send action - presentLeftMenuViewController"

link your button to this fun.

- (IBAction)sideMenuButton:(id)sender {
    // toggle the right side menu
     [self.sideMenuViewController presentRightMenuViewController];
}
- (IBAction)leftSideMenuButton:(id)sender {
    // toggle the right side menu
     [self.sideMenuViewController presentLeftMenuViewController];
}