3 ms·
The article isn't relying on method name conflict in the category. It's declaring a new method and swizzling in +load. If you meant the +load method itself conf
by lilyball 7y ago
The article isn't relying on method name conflict in the category. It's declaring a new method and swizzling in +load. If you meant the +load method itself conflicts, that's not true because +load on categories is handled specially by the Obj-C runtime. You can have 20 different categories define +load on the same class and the runtime will invoke all of them.
- saagarjha 7y agoOh, TIL!