12345678910111213141516171819202122232425 |
- //
- // JXPagerMainTableView.m
- // JXPagerView
- //
- // Created by jiaxin on 2018/8/27.
- // Copyright © 2018年 jiaxin. All rights reserved.
- //
- #import "JXPagerMainTableView.h"
- @interface JXPagerMainTableView ()<UIGestureRecognizerDelegate>
- @end
- @implementation JXPagerMainTableView
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
- if (self.gestureDelegate && [self.gestureDelegate respondsToSelector:@selector(mainTableViewGestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:)]) {
- return [self.gestureDelegate mainTableViewGestureRecognizer:gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:otherGestureRecognizer];
- }else {
- return [gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]] && [otherGestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]];
- }
- }
- @end
|