Method swizzling in Objective-C

Another good post from Mark Dalrymple of Big Berd Ranch, this time focusing on adding and changing classes at runtime (swizzling):

Mark’s advice:

Don’t use it for real code in real programs used by real people. The risks of stuff breaking is rarely worth it. So far in my career I’ve used swizzling for writing some unit tests (say wanting to patch out part of some godforsaken singleton), but have never shipped any.