Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Pan Gesture for a 3rd party class #214

Open
syedqamara opened this issue Mar 25, 2016 · 0 comments
Open

Disable Pan Gesture for a 3rd party class #214

syedqamara opened this issue Mar 25, 2016 · 0 comments

Comments

@syedqamara
Copy link

I have a UIViewController with pan mode enable and a TTRangeSlider in this view controller but when ever i touch the slider to change the value it also opens the side menu. I want to enable panning for this object, how can i disable it for TTRangeSlider object not for the whole view controller.

I have already tried your given solution in this method.

  • (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch

With this solution but still it doesn't working.

if ([touch.view isKindOfClass:[TTRangeSlider class]]) {

    NSLog(@"Ye Line Execute ho gai hai bhaiyooooooooooooo");

    return NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant