Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. void Swizzle(Class class, SEL selector, void(^block)())
  2. {
  3. Method method = class_getInstanceMethod(class, selector);
  4. //IMP imp = method_getImplementation(method);
  5. method_setImplementation(method, imp_implementationWithBlock(block));
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement