In reference to the following question: iPhone: How do I detect when an app is launched for the first time?
When I looked up NSUserDefaults apple reference, it said that registerDefaults
does not store the data onto the disk. In the above question, the app registers the value firstLaunch
to YES
upon each launch. So each time the app is launched, firstLaunch
is overwritten to YES
and so the app will always think that this is the app's initial launch.
Am I right on this?
EDIT:
After doing what the tutorial above says, it doesn't always work anyway. I keep relaunching from Xcode and it keep printing out 1
bool value as in its the first launch.