/ Published in: Objective C
Method swizzling in Objective-C 2.0, from http://cocoawithlove.com/2008/03/supersequent-implementation.html
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Method myReplacementMethod = class_getClassMethod([MyClass class], @selector(myReplacementMethod)); method_exchangeImplementations(myReplacementMethod, windowDealloc);