romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.
MIT License
7.1k stars 1.35k forks source link

How to Open Side Menu on UIButton Click event. #290

Open avinashvaghasiya opened 8 years ago

avinashvaghasiya commented 8 years ago

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

TSEL0 commented 8 years ago

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

AhmAbdallah commented 8 years ago

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];
}