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

Disable the right menu while keep the right bar button item showing #177

Open SnapeServerus opened 9 years ago

SnapeServerus commented 9 years ago

How to disable the right menu while keep the right bar button item showing?

SCLDev commented 8 years ago

If you mean using the right bar button item for another purpose (not for the right menu), I had the same issue, and I achieved it by adding the button myself in the storyboard. It would be a good idea to know how to do it programmatically, but at least mine's working. just add a button to your navigation bar, and attach it to an IBAction

funkydonkey123 commented 8 years ago

return false for slideNavigationControllerShouldDisplayRightMenu and set a new UIBarButtonItem for self.navigationItem.rightBarButtonItem.