I’m making an app where I would need to set two global variables, which should be able to be modified by any class in the entire app. I tried setting on the appDelegate, on a GlobalClass class, on main.m, as a @property declaration, but I don’t manage to get them all around the app, how could I do it? Thanks 🙂
I’m making an app where I would need to set two global variables, which
Share
A really simple solution is to do something like this:
You will then have a static variable in Objective-C ( the original blog posting about this can be found here )