I'm using John Lluch's SWRevealViewController in my application and when the sidebar is out and the user wants to close it, the front view is constantly clicked.
What I want to do is disable the front view when the sidebar (Rear view) is shown, but it wasn't as easy as I thought. When disabling the front view (self.revealViewController.frontViewController.view.userInteractionEnabled = NO;
), the gesture listener and reveal button listener is also disabled, so the user cannot close the sidebar again.
So have anyone solved a problem similar to this? How can I disable specific components of my view controller? I tried looking through the object and finding the correct subviews but it's just too complex and would be ugly.
Thanks for any input on this!
add
SWRevealViewControllerDelegate
in your viewcontrollercall the following method in view DidLoad
add the following method on your settings Button/side bar button
if you want to do something in delegate method