[_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];
}
}
网友评论