This is kind of newbie question on objective-c:
I would like to create a static class available throughout my entire code to be accessed by any object. This class will act as a container of several objects.
Can anybody provide a short example of code as how to declare static global variables and methods ?
This is kind of newbie question on objective-c: I would like to create a
Share
For my Globals class I have something like this
The .h file looks like this
and the .m file is like this
import "Globals.h"
of course this is a very basic example of a Globals class