I have a value that I want to store. By default it is 14. I have a text field that a user would input their own value perhaps 5, 10, or 20. I need that value stored (every time they open the app, too) to be used across 3 different classes.
What’s the best approach? Settings Bundle? Is there an easier way?
You can use
NSUserDefaults.int
float
The same method method can be used for
double.