title: Detecting the initial launch of an app using NSUserDefaults
body: <p>In reference to the following question: <a href="https://stackoverflow.com/questions/308832/iphone-the-quickest-easiest-way-to-detect-first-launch">iPhone: How do I detect when an app is launched for the first time?</a></p>
  
  <p>When I looked up NSUserDefaults apple reference, it said that <code>registerDefaults</code> does not store the data onto the disk. In the above question, the app registers the value <code>firstLaunch</code> to <code>YES</code> upon each launch. So each time the app is launched, <code>firstLaunch</code> is overwritten to <code>YES</code> and so the app will always think that this is the app's initial launch.</p>
  
  <p>Am I right on this?</p>
  
  <p>EDIT:</p>
  
  <p>After doing what the tutorial above says, it doesn't always work anyway. I keep relaunching from Xcode and it keep printing out <code>1</code> bool value as in its the first launch.</p>