Reputation: 119
(Hint: I am just trying to make German as the default language when German or any other language is selected. Incase of French, it will show app in french language but for any othe language , it should show German.)
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"AppleLanguages"];
[NSUserDefaults resetStandardUserDefaults];
NSLog(@"%@",[NSLocale preferredLanguages]);
NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];
if ([language isEqualToString:@"fr"])
{
NSArray *langOrder = [NSArray arrayWithObjects:@"fr", nil];
[[NSUserDefaults standardUserDefaults] setObject:langOrder forKey:@"AppleLanguages"];
}
else
{
NSArray *langOrder = [NSArray arrayWithObjects:@"de", nil];
[[NSUserDefaults standardUserDefaults] setObject:langOrder forKey:@"AppleLanguages"];
}
Upvotes: 2
Views: 531
Reputation: 3622
No, apple will not reject your app. You can also read the rules for rejection of app from the following link: https://developer.apple.com/app-store/review/rejections/
Upvotes: 2