title: How to store a boolean value after my app is killed
body: <pre><code>+ (void)setUISoundsEnabled:(BOOL)UISoundsEnabled
  {
      __UISoundsEnabled = UISoundsEnabled;
  
  }
  </code></pre>
  
  <p>The app has a preferences page that lets me toggle different alert sounds on and off. When I toggle the alert sound off, this UISoundsEnabled bool is set to: YES, and vice versa.</p>
  
  <p>However when the app crashes, or I kill it (not just close it); I believe the bool is not being stored, because despite what the switch says (not to play sounds) it still plays sounds.</p>
  
  <p>Any ideas?</p>