VIAnalyticsKit icon indicating copy to clipboard operation
VIAnalyticsKit copied to clipboard

+load method in the category should be guarantee execute onlyonce

Open robinli08 opened this issue 8 years ago • 0 comments

  • (void)load { Method delegateOriginalMethod = class_getInstanceMethod([self class], @selector(setDelegate:)); Method delegateSwizzledMethod = class_getInstanceMethod([self class], @selector(vi_setDelegate:));

    method_exchangeImplementations(delegateOriginalMethod, delegateSwizzledMethod); }

robinli08 avatar Mar 02 '17 07:03 robinli08