Objective-C-Optimized-Singleton
Objective-C-Optimized-Singleton copied to clipboard
How does this compare to the dispatch_once approach?
I’ve seen elsewhere implementations of a singleton that use dispatch_once
to initialize the static variable.
How does that compare with the method swizzling approach, and, can they be combined, or there is no point?
TIA Victor