Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Swizzle(Class class, SEL selector, void(^block)())
- {
- Method method = class_getInstanceMethod(class, selector);
- //IMP imp = method_getImplementation(method);
- method_setImplementation(method, imp_implementationWithBlock(block));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement