After some research, I found out that key AppleLanguages โโhave been overwritten. So,
NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
[defaults objectForKey:@"AppleLanguages"];
He returned a list of dictionaries with overwritten data. I just did this:
NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
NSDictionary * dict = [defaults dictionaryRepresentation];
for (id key in dict) {
if([key isEqualToString:@"AppleLanguages"]){
[defaults removeObjectForKey:key];
}
}
[defaults synchronize];
To delete the entire key and system reset and return the correct list.
source
share