iOS判断当前系统语言:
示例,判断英语:
- (BOOL)isCurrentLanguageEn
{
NSArray *languages = [NSLocale preferredLanguages];
NSString *currentLanguage = [languages objectAtIndex:0];
if ([currentLanguage isEqualToString:@"en"])
{
return YES;
}
return NO;
}
网友评论