I am trying to remove an object from a dictionary which is in userdefaults.
NSMutableDictionary *userDefaults = (NSMutableDictionary*)[[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
[userDefaults removeObjectForKey:@"XYZ"];
The above code removes the whole dictionary.
XYZ is a NSMutuableDictionary
. I want to remove an object with key "Password" from XYZ.