iOS判断当前系统语言

iOS判断当前系统语言:

示例,判断英语:

- (BOOL)isCurrentLanguageEn{NSArray*languages = [NSLocalepreferredLanguages];NSString*currentLanguage = [languages objectAtIndex:0];if([currentLanguage isEqualToString:@"en-CN"])    {returnYES;    }returnNO;}

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