获取当前设备语言

NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];

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

NSString* preferredLang = [languages objectAtIndex:0];

NSLog(@"%@",preferredLang); 

posted @ 2011-04-28 10:18  周宏伟  阅读(247)  评论(0编辑  收藏  举报