diff --git a/TLTransitions/TransitionController/TLPercentDrivenInteractiveTransition.m b/TLTransitions/TransitionController/TLPercentDrivenInteractiveTransition.m index 4694c77..9d8e9e8 100644 --- a/TLTransitions/TransitionController/TLPercentDrivenInteractiveTransition.m +++ b/TLTransitions/TransitionController/TLPercentDrivenInteractiveTransition.m @@ -67,7 +67,9 @@ - (CGFloat)percentForGesture:(UIPanGestureRecognizer *)gesture CGFloat percent = 0.f; - if ([gesture isMemberOfClass: [UIScreenEdgePanGestureRecognizer class]]) { + if ([gesture isMemberOfClass: [UIScreenEdgePanGestureRecognizer class]] || + [gesture isMemberOfClass: NSClassFromString(@"TLScreenEdgePanGestureRecognizer")]) + { if (self.edge == UIRectEdgeRight) { percent = (width - locationInSourceView.x) / width; @@ -76,7 +78,7 @@ - (CGFloat)percentForGesture:(UIPanGestureRecognizer *)gesture percent = locationInSourceView.x / width; } - }else { + }else { // 用户自定义收拾 if (self.edge == UIRectEdgeRight) { percent = (width - locationInSourceView.x) / width;