获得系统语言。

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 
NSArray *languages = [defaults objectForKey:@"AppleLanguages"]; 
NSString *currentLanguage = [languages objectAtIndex:0];

取得设置好的语言。。日语是ja,中文是zh_Hans


NSString *currentLanuage=[[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode];

你可能感兴趣的:(获得系统语言。)