title: How to save custom object data in AppDelegate?
body: <p>I have a custom object called <code>UserSettings</code>. Its a subclass NSObject with a few properties.
  It has a method called <code>saveSettings</code> and all it does is save the properties to <code>NSUserDefaults</code>.</p>
  
  <p>Everything works fine when I instantiate it and call the save method in my <code>ViewController</code> class. But I also need to save the settings in <code>AppDelegate</code> when application goes into background or terminates.</p>
  
  <p>What would be the best practice for this typical scenario?<br>
  Should I use instantiate the object in <code>AppDelegate</code> and use <code>UIApplication sharedApplication</code> to access it as the TS here? <a href="https://stackoverflow.com/questions/2767551/saving-data-in-custom-class-via-appdelegate">Saving data in custom class via AppDelegate</a><br>
  Or should I create a static object?</p>
  
  <p>Ignore my suggestions if it sounds weird as I'm still trying to get familiar with the design patterns.</p>