title: NSUserDefaults Values Are Lost Periodically
body: <p>I use <code>[NSUserDefaults standardDefaults]</code> to store a boolean to see if it is the first time that application is being launched ... If so, the app should show a registration window. </p>
  
  <ul>
  <li><p>It was working fine till last week, but now, sometimes when I switch to other apps and come back after a little while, I see that registration page loads while it shouldn't. </p></li>
  <li><p>I used <code>NSLog</code> to see what is stored in <code>[NSUserDefaults standardDefaults]</code> and I see that the values I stored has been set to <code>nil (null)</code> while I haven't done that anywhere in my code. </p></li>
  </ul>
  
  <p>Does anyone know why the values do reset ?</p>
  
  <p><strong>P.S:</strong> Actually the values are not permanently lost , because if I don't do anything in registration page and quit the app instead, It will launch normally the next time I enter the app !!!</p>