Jon Simpson

Customize UIKit with Method Swizzling

1 May 2010

Method swizzling, in short, is switching methods at runtime. So you can say for UINavigationBar don’t use the standard drawRect:, but instead swap it with a different one.

Nice to have an alternative to overriding methods - this seems like a cleaner way to structure customizations of the standard Apple classes.