Closed alisattar456 closed 7 years ago
where i paste it in appdelegete in swrevealview controller or main view controller
Where you want. You have to know what is a protocol and a delegate first! Your controller have to adopt the SWRevealViewController protocol and have to set the SWRevealViewController delegate to self for these methods be called. You could also subclass SWRevealViewController and set the delegate to this subclass.
I am uploading my sample project kindly implement the disable interaction with front view when left are revealed and in picture only open gesture is working for open menu but when click it close i want to close with gesture in image 2 i am using webview in this view controller left is revealed successfull but no touch is wokring on webview or gesture to close reveal view
1) I modified DashBordViewController.m for adopting PBRevealViewControllerDelegate protocol and add the two methods called when left is about to show or hide to set userInteractionEnabled to NO or YES on the main view.
2) PBRevealViewController do not provide a pan gesture for close left or right view. Only tap.
Thanks Very Much
Use the delegate methods: