iOS 判断当前系统语言

iOS判断当前系统语言:
示例,判断英语:

- (BOOL)isCurrentLanguageEn
{
    NSArray *languages = [NSLocale preferredLanguages];
    NSString *currentLanguage = [languages objectAtIndex:0];
    if ([currentLanguage isEqualToString:@"en"])
    {
        return YES;
    }
    
    return NO;
}

你可能感兴趣的:(iOS 判断当前系统语言)