0
votes

Below is the code which I am using to set the language of my app, Some how I am unable to find the correct value for AppleLanguages. Can some one please guide me, where can I get the list of values for AppleLanguages?

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject:[NSArray arrayWithObject:@"arabic"] forKey:@"AppleLanguages"];

2

2 Answers

0
votes

Do this really early in your app, like in your main() function.

    [[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"ar"] forKey:@"AppleLanguages"];