NSUserDefaults is basically kind of Hashmap (dictionary) that stores the keys and values.


Print Keys

In order to print all the keys do the follow:


NSLog(@”%@”, [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys]);


Print Key and Values

In order to print both the keys & values do the follow:


NSLog(@”%@”, [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]);