CocoaDev

Edit AllPages

void MethodSwizzle(Class aClass, SEL orig_sel, SEL alt_sel);

Takes aClass’s implementations of the methods orig_sel and alt_sel and swaps them. See MethodSwizzling for implementation and discussion.