now my app needs to be running in english but when i run the application for the first time the default language of the device is used .
i tried this code :
@autoreleasepool {
[[NSUserDefaults standardUserDefaults] setObject:nil forKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] synchronize];
[[NSUserDefaults standardUserDefaults] setObject:@"en_US" forKey:@"AppleLocale"];
[[NSUserDefaults standardUserDefaults] setObject:@"en_EN" forKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] synchronize];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
the problem remains , the first run of the application is wrong , but if you close the application and reopen it english is the default language any help ?