edit variable values in different view controllers?
Hi. I want to be able to edit one value in one view controller in another. For example, i have a game view controller and an options menu view controller. I want to be able to edit a number that's in the game (such as how fast a ball goes in pong) in the options menu and then have it change the value in both the options menu and the game. And no im not creating a pong game. It's just the best example I could think of. Basically, what I want to do is make a variable (and its value) available throughout the project. Is this even possible? Help is always appreciated. Thanks in advance.
|