Skip to content

Instantly share code, notes, and snippets.

@robbywalker
Last active December 11, 2015 05:19
Show Gist options
  • Save robbywalker/4551841 to your computer and use it in GitHub Desktop.
Save robbywalker/4551841 to your computer and use it in GitHub Desktop.
+ (void)preventInstrumentation:(Class)cls selector:(SEL)selector {
Method method = class_getInstanceMethod(cls, selector);
class_addMethod(classes[cls], method_getName(method), method_getImplementation(method),
method_getTypeEncoding(method));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment