Coder Social home page Coder Social logo

Comments (6)

gresrun avatar gresrun commented on July 28, 2024

Try setting [self.revealVC.contentViewController.view setUserInteractionEnabled:NO]; when you open the menu.

from ghsidebarnav.

Alkalouti avatar Alkalouti commented on July 28, 2024

please where i should put this code and how to get setUserInteractionEnabled:YES again thanks again

from ghsidebarnav.

gresrun avatar gresrun commented on July 28, 2024

I goes in your app. 😃 Seriously, I need some context here if you want my help.

from ghsidebarnav.

Alkalouti avatar Alkalouti commented on July 28, 2024

👍 hhhhhhhhh
i have profile for user and i want to change cover for user i put gesture on image when pressed on it open uiaction sheet i want when click to the menu make view not clickable
thanks again for your help

iOS Simulator Screen shot Apr 24 2013 4 04 09 PM

from ghsidebarnav.

gresrun avatar gresrun commented on July 28, 2024

Well it actually looks like the place to put it would probably be in GHRevealViewController:

- (void)toggleSidebar:(BOOL)show duration:(NSTimeInterval)duration completion:(void (^)(BOOL finsihed))completion {
    __weak GHRevealViewController *selfRef = self; // ADDED
    void (^animations)(void) = ^{
        if (show) {
            _contentView.frame = CGRectOffset(_contentView.bounds, kGHRevealSidebarWidth, 0.0f);
            [_contentView addGestureRecognizer:_tapRecog];
            [selfRef.contentViewController.view setUserInteractionEnabled:NO]; // ADDED
        } else {
            if (self.isSearching) {
                _sidebarView.frame = CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds));
            } else {
                [_contentView removeGestureRecognizer:_tapRecog];
            }
            _contentView.frame = _contentView.bounds;
            [selfRef.contentViewController.view setUserInteractionEnabled:YES]; // ADDED
        }
        self.sidebarShowing = show;
    };
    if (duration > 0.0) {
        [UIView animateWithDuration:duration
                              delay:0
                            options:UIViewAnimationOptionCurveEaseInOut
                         animations:animations
                         completion:completion];
    } else {
        animations();
        completion(YES);
    }
}

Try changing that, and if that's what you want, I'll commit it.

from ghsidebarnav.

Alkalouti avatar Alkalouti commented on July 28, 2024

thanks a lot it's work successfully thanks for your feedback

from ghsidebarnav.

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.