inside the singleton methods how should I use a singleton:
like:
[self doMethod];
or:
[[SingletonClass sharedSingleton] doMethod];
?
I can think of no reason to do it the second way. That way is longer, slower and more brittle -- and there's no upside to it. Just use self unless you have a really compelling reason to do otherwise. Singletons are essentially just normal objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With