...
|
...
|
@@ -58,7 +58,7 @@ |
|
|
{
|
|
|
NSString *selectorAction = NSStringFromSelector(action);
|
|
|
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIViewController class]] || [target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) {
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) {
|
|
|
if ([[selectorAction componentsSeparatedByString:@":"]count]==2) {
|
|
|
[UITapGestureRecognizer yher_exchangeSelector:action target:target toSelector:@selector(yher_gestureRecognizerDidTouch_cmd:)];
|
|
|
}
|
...
|
...
|
@@ -70,7 +70,7 @@ |
|
|
{
|
|
|
NSString *selectorAction = NSStringFromSelector(action);
|
|
|
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIViewController class]] || [target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) {
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) {
|
|
|
if ([[selectorAction componentsSeparatedByString:@":"]count]==2) {
|
|
|
[UITapGestureRecognizer yher_exchangeSelector:action target:target toSelector:@selector(yher_gestureRecognizerDidTouch_cmd:)];
|
|
|
}
|
...
|
...
|
@@ -82,14 +82,14 @@ |
|
|
#pragma mark - action
|
|
|
- (void)yher_gestureRecognizerDidTouch_cmd:(UIGestureRecognizer*)sender
|
|
|
{
|
|
|
if (([sender.view isKindOfClass:[UIViewController class]] || [sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) {
|
|
|
if (([sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventStartWithUIGestureRecognizer:sender];
|
|
|
}
|
|
|
|
|
|
[self yher_gestureRecognizerDidTouch_cmd:sender];
|
|
|
|
|
|
|
|
|
if (([sender.view isKindOfClass:[UIViewController class]] || [sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) {
|
|
|
if (([sender.view isKindOfClass:[UIImageView class]] || [sender.view isKindOfClass:[UILabel class]])) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithUIGestureRecognizer:sender];
|
|
|
}
|
|
|
}
|
...
|
...
|
|