Authored by 孙凯

add 开关 review by hongmo

... ... @@ -56,7 +56,7 @@
#pragma mark - hook API
- (instancetype)yher_initWithTarget:(nullable id)target action:(nullable SEL)action
{
if (([target isKindOfClass:[UIViewController class]] || [target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) {
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].buttonPerformanceTrackEnable && ([target isKindOfClass:[UIViewController class]] || [target isKindOfClass:[UIImageView class]] || [target isKindOfClass:[UILabel class]])) {
[UITapGestureRecognizer yher_exchangeSelector:action target:target toSelector:@selector(yher_gestureRecognizerDidTouch_cmd:)];
}
return [self yher_initWithTarget:target action:action];
... ...