获取当前设备语言

NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];

NSArray* languages = [defs objectForKey:@"AppleLanguages"];

NSString* preferredLang = [languages objectAtIndex:0];

NSLog(@"%@",preferredLang); 

你可能感兴趣的:(获取)