In my projects, if I need an object which can be accessed globally, we create a Singleton manager object for it. And most of the time, it has to do with Settings.

The following code demonstrates a safe way to declare singleton objects:

Happy Goals for iOS

Happy Goals for iOS

Want an app to help you track and achieve your goals, without the complex stuff, saving you from headaches? Checkout Happy Goals - Habits & Goals Tracker now in the App Store! Happy Goals has been featured in the App Store in over 32 countries. Start now, better late than never!

 

Thank you!

%d bloggers like this: