Giter Site home page Giter Site logo

Comments (6)

iDevelopper avatar iDevelopper commented on July 3, 2024 1
  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.

Health-Appoinment1.zip

from pbrevealviewcontroller.

iDevelopper avatar iDevelopper commented on July 3, 2024

Use the delegate methods:

- (void)revealController:(PBRevealViewController *)revealController willShowLeftViewController:(UIViewController *)controller
{
    revealController.mainViewController.view.userInteractionEnabled = NO;
}

- (void)revealController:(PBRevealViewController *)revealController willHideLeftViewController:(UIViewController *)controller
{
    revealController.mainViewController.view.userInteractionEnabled = YES;
}

from pbrevealviewcontroller.

alisattar456 avatar alisattar456 commented on July 3, 2024

where i paste it in appdelegete in swrevealview controller or main view controller

from pbrevealviewcontroller.

iDevelopper avatar iDevelopper commented on July 3, 2024

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.

from pbrevealviewcontroller.

alisattar456 avatar alisattar456 commented on July 3, 2024

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

screen shot 2016-11-14 at 2 14 39 pm
screen shot 2016-11-14 at 2 29 09 pm

sampleproject.zip

from pbrevealviewcontroller.

alisattar456 avatar alisattar456 commented on July 3, 2024

Thanks Very Much

from pbrevealviewcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.