Hi,
I am creating a storybook app, and I want to put an option on the front page(using a on/off switch) which will tell every other view that the narrator should be turned off. As a programmer, my first instinct is to use a global variable of some kind, but I can't seem to set this "preference" globally, and I got the vibe that using global variables was frowned upon anyways. Also, I don't want to create a Settings bundle because this may be the only preference I implement, and it's not something that I feel needs to be placed in the Settings app.
So my main problem is accessing that switch's value when I am in another view. Any help would be much appreciated. Thanks!
I am creating a storybook app, and I want to put an option on the front page(using a on/off switch) which will tell every other view that the narrator should be turned off. As a programmer, my first instinct is to use a global variable of some kind, but I can't seem to set this "preference" globally, and I got the vibe that using global variables was frowned upon anyways. Also, I don't want to create a Settings bundle because this may be the only preference I implement, and it's not something that I feel needs to be placed in the Settings app.
So my main problem is accessing that switch's value when I am in another view. Any help would be much appreciated. Thanks!