| Start |
|---|
| Using Grand Central Dispatch (GCD) GCD will guarantee that your singleton only gets instantiated once, even if called from multiple threads. Insert this into any class for a singleton instance called |
Creating Singleton and also preventing it from having multiple instance using alloc/init, new. |
| Creating Singleton class and also preventing it from having multiple instances using alloc/init. We can create Singleton class in such a way that developers are forced to used the shared instance (singleton object) instead of creating their own instances. |
Read Article
https://develop.horje.com/learn/1434/reference