获取设备自身属性

1.获取设备语言及地区

NSString*languageName = [[NSLocalecurrentLocale]objectForKey:NSLocaleLanguageCode];  //eg:zh

NSString*langCounName = [[NSLocalecurrentLocale]localeIdentifier];  // eg:zh_CN

langCounName = [langCounNamestringByReplacingOccurrencesOfString:@"_"withString:@"-"];  //将_修改为-

2.


3.


4.


5.


6.

你可能感兴趣的:(获取设备自身属性)