UIScrollview左右滑动和返回上一级的手势冲突

    [_bigScrollView.panGestureRecognizer requireGestureRecognizerToFail:self.navigationController.interactivePopGestureRecognizer];


//实际项目代码
#pragma mark -- 左滑手势透传
-(void)requirePopGesture{
    UIGestureRecognizer *gestureRecognizer = self.parentViewController.navigationController.interactivePopGestureRecognizer;
    if (gestureRecognizer) {
        gestureRecognizer.enabled = YES;
        [self.segmentContentView.panGestureRecognizer requireGestureRecognizerToFail:gestureRecognizer];
    }
}

你可能感兴趣的:(UIScrollview左右滑动和返回上一级的手势冲突)