I’m working with my first grasping of a settings screen. I set a boolean or something like that from within the settings screen which then would change something in the main viewcontroller.
For example, “Enable Private Browsing?”
^ Declared within the settings viewcontroller, returns a “YES” or “NO” boolean.
And if it returns yes, it would be enabled within the main viewcontroller. However, I need to know how it’s possible to obtain that boolean in the main viewcontroller to actually enable/disable it using the value set in the settings viewcontroller.
Thanks for your time, and I greatly appreciate it.
-Jake
you can use NSUserDefaults
save on settings viewcontroller with:
retrieve on mainviewcontroller with:
this will be persistant(will be saved even after the app is closed) so remember to do
on your settings view controller
}