I’m using this to get object from Key
NSUserDefaults *defaults=[NSUserDefaults standardUserDefaults];
NSString *object=[defaults objectForKey:someKey];
How I can get opposite effect? Key from Object?
Something like
NSString *key=[defaults keyForObject:object];
Thanks
You can get the
NSUserDefaultsdictionary (with thedictionaryRepresentationmethod). You can then use the dictionary methodor
to get the key for your object.