解决使用FDFullscreenPopGesture与UISlider的手势冲突问题
在_FDFullscreenPopGestureRecognizerDelegate中
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
//如果手势是触摸的UISlider滑块触发的,侧滑返回手势就不响应
if ([touch.view isKindOfClass:[UISlider class]]) {
return NO;
}
return YES;
}
网友评论