(提示:当我选择德语或任何其他语言时,我只是想将德语作为默认语言。如果是法语,它将以法语显示应用程序,但对于任何其他语言,它应显示德语。)< / p>
[[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"];
}
答案 0 :(得分:2)
不,苹果不会拒绝您的应用。 您还可以通过以下链接阅读拒绝应用的规则:https://developer.apple.com/app-store/review/rejections/