
正文
ios 获取手机设备信息
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
[UIDevice currentDevice]:表示设备
NSString *devices=[[NSString alloc]
initWithFormat:
@"unique id: %@ \nlocalized model: %@ \nsystem version: %@ \nsystem name: %@ \nmodel: %@",
[[UIDevice currentDevice] uniqueIdentifier],
[[UIDevice currentDevice] localizedModel],
[[UIDevice currentDevice] systemVersion],
[[UIDevice currentDevice] systemName],
[[UIDevice currentDevice] model]];
NSLog(@"%@",devices);







