title: How to implement NSUserDefaults to save preferences
body: <p>My app has a setting that allows me to turn off ui sounds, or turn it on. I use this for the value:</p>
  
  <pre><code>+ (void)setUISoundsEnabled:(BOOL)UISoundsEnabled
  {
      __UISoundsEnabled = UISoundsEnabled;    
  }
  </code></pre>
  
  <p>here is a notification in my view controller that listens for preference changes and then updates the sound settings. </p>
  
  <pre><code>- (void)preferencesDidChange:(NSNotification *)note  
  {
      NSMutableArray *changedPreferences = note.object;  
      if ([changedPreferences containsObject:@"localPlayUISounds"]) {  
          [FHSSound setUISoundsEnabled:PREFS.localPlayUISounds];  
  
      }
  </code></pre>
  
  <p>2 questions:</p>
  
  <p>First question: How would go about getting the settings saved in PREFS to match the settings saved in the BOOL at the top.</p>
  
  <p>Second question:
  How would I implement NSUserDefaults to save and load this data. To be specific where exactly am I implementing NSUserDefaults to save, and load this data. I'm not familiar with NSUserDefaults so examples would be very helpful</p>
  
  <p>Please let me know if you need any more code or have any more questions</p>