Change application language programmatically

I am developing an iOs application with the latest versions of the SDK and Xcode 4.2.

I need to add a menu in which the user can only change the language of the application (I don’t want to change the language of the device).

I also want to use NSLocalizedString .

How can i do this?

+7
source share
1 answer

Try the following:

 // switching to polish locale [[NSUserDefaults standardUserDefaults] setObject:@[@"pl"] forKey:@"AppleLanguages"]; [[NSUserDefaults standardUserDefaults] synchronize]; 
+11
source

All Articles