How to load data in iOS
Here’s how you load data you’ve previously saved with NSUserDefaults. Since you only load data once I’d put this in the AppDelegate.m file (as applicationDidFinishLaunching) or in ViewDidLoad if you have a single view application: // let’s load our data if there is any NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; int theNumber = [defaults integerForKey:@”theNumber”]; NSString […]