In my viewWillLoad: method I\'m currently doing something along these lines:
- (void)viewWillAppear:(BOOL)animated { NSUserDefaults *defaults = [
You should provide defaults in your code using -registerDefaults:. This is typically done in an +initialize method for whatever class uses the settings. See Using NSUserDefaults.
-registerDefaults:
+initialize