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
As mentioned above it wont work for primitive types where 0/NO could be a valid value. I am using this code.
NSUserDefaults *defaults= [NSUserDefaults standardUserDefaults]; if([[[defaults dictionaryRepresentation] allKeys] containsObject:@"mykey"]){ NSLog(@"mykey found"); }