add 手势 viewPath review by hongmo
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -58,7 +58,7 @@ | @@ -58,7 +58,7 @@ | ||
58 | { | 58 | { |
59 | NSString *selectorAction = NSStringFromSelector(action); | 59 | NSString *selectorAction = NSStringFromSelector(action); |
60 | 60 | ||
61 | - if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIViewController class]] || [target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) { | 61 | + if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) { |
62 | if ([[selectorAction componentsSeparatedByString:@":"]count]==2) { | 62 | if ([[selectorAction componentsSeparatedByString:@":"]count]==2) { |
63 | [UITapGestureRecognizer yher_exchangeSelector:action target:target toSelector:@selector(yher_gestureRecognizerDidTouch_cmd:)]; | 63 | [UITapGestureRecognizer yher_exchangeSelector:action target:target toSelector:@selector(yher_gestureRecognizerDidTouch_cmd:)]; |
64 | } | 64 | } |
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | { | 70 | { |
71 | NSString *selectorAction = NSStringFromSelector(action); | 71 | NSString *selectorAction = NSStringFromSelector(action); |
72 | 72 | ||
73 | - if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIViewController class]] || [target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) { | 73 | + if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) { |
74 | if ([[selectorAction componentsSeparatedByString:@":"]count]==2) { | 74 | if ([[selectorAction componentsSeparatedByString:@":"]count]==2) { |
75 | [UITapGestureRecognizer yher_exchangeSelector:action target:target toSelector:@selector(yher_gestureRecognizerDidTouch_cmd:)]; | 75 | [UITapGestureRecognizer yher_exchangeSelector:action target:target toSelector:@selector(yher_gestureRecognizerDidTouch_cmd:)]; |
76 | } | 76 | } |
@@ -82,14 +82,14 @@ | @@ -82,14 +82,14 @@ | ||
82 | #pragma mark - action | 82 | #pragma mark - action |
83 | - (void)yher_gestureRecognizerDidTouch_cmd:(UIGestureRecognizer*)sender | 83 | - (void)yher_gestureRecognizerDidTouch_cmd:(UIGestureRecognizer*)sender |
84 | { | 84 | { |
85 | - if (([sender.view isKindOfClass:[UIViewController class]] || [sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) { | 85 | + if (([sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) { |
86 | [[YH_EventCollector sharedInstance] timeEventStartWithUIGestureRecognizer:sender]; | 86 | [[YH_EventCollector sharedInstance] timeEventStartWithUIGestureRecognizer:sender]; |
87 | } | 87 | } |
88 | 88 | ||
89 | [self yher_gestureRecognizerDidTouch_cmd:sender]; | 89 | [self yher_gestureRecognizerDidTouch_cmd:sender]; |
90 | 90 | ||
91 | 91 | ||
92 | - if (([sender.view isKindOfClass:[UIViewController class]] || [sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) { | 92 | + if (([sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) { |
93 | [[YH_EventCollector sharedInstance] timeEventEndWithUIGestureRecognizer:sender]; | 93 | [[YH_EventCollector sharedInstance] timeEventEndWithUIGestureRecognizer:sender]; |
94 | } | 94 | } |
95 | } | 95 | } |
-
Please register or login to post a comment