在使用PresentModel的方式进行转场动画时,出现UIPercentDrivenInteractiveTransition和 UITableView的自带手势冲突,问题需要总结,今天系统复习和总结一下,纯属个人笔记。
我初步解决的思路:
@interface SingleChatListController ()<UIGestureRecognizerDelegate> ...
先找到VC中的手势,在ViewDidLoad(这个要区分情况,在加载手势之后执行下面的代码)中
for (UIGestureRecognizer * recognizer in self.view.gestureRecognizers) { recognizer.delegate = self; }
#pragma mark -- UIGestreognizer Delegate - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { if ([gestureRecognizer isKindOfClass:[ZFDetectScrollViewEndGestureRecognizer class]]) { UIPanGestureRecognizer * gest = (UIPanGestureRecognizer *)gestureRecognizer; CGPoint point = [gest translationInView:self.view]; ) { return YES; } return NO; } return YES; }
这样就可以避免了,出现手势冲突了,具体问题具体分析