I\'m working on a small iPhone app, and I am using NSUserDefaults as my data persistence. It only has to keep track of a few things, such as some names and som
NSUserDefaults
The objectForKey: method will return nil if the value does not exist. Here's a simple IF / THEN test that will tell you if the value is nil:
objectForKey:
nil
if([[NSUserDefaults standardUserDefaults] objectForKey:@"YOUR_KEY"] != nil) { ... }