title: Storing passwords in iPhone applications
body: <p>I have a simple application, based of the "Utility Application" template. It retrieves a password-protected XML file (via NSXMLParser).</p>
  
  <p>I want to allow the user to set a username and password in the "FlipsideView", how would I go about this?</p>
  
  <p>I have the basics in place, the two UITextField boxes, the value of which gets set to a fixed value when the view loads (using the <code>viewWillAppear</code> method), and NSLog'd when the view is closed (the <code>NSLog</code> is just for testing, obviously, in the <code>viewWillDisappear</code> method)</p>
  
  <p>How do I store the data? I've had a look at the Developer documentation, and it seems like I should be using <code>NSUserDefaults</code>..?</p>