您的位置:首页 > 移动开发 > IOS开发

获取进程信息和设备信息(包括设备类型,序列号,ios版本等

2012-02-21 15:47 411 查看
获取进程信息和设备信息(包括设备类型,序列号,ios版本等)
/*
globallyUniqueString:6F367FA4-761F-411D-8456-C1EC00232509-1290-00000040C5E992C1
hostName:hl-030-ipod.local
oprerationSystemName:NSMACHOperatingSystem
operatingSystemVersionString:Version 4.1 (Build 8B117)
physicalMemory:121634816
processName:iSuzhouCity
*/
NSLog(@"globallyUniqueString:%@\nhostName:%@\noprerationSystemName:%@\noperatingSystemVersionString:%@\nphysicalMemory:%qu\nprocessName:%@\n",
[[NSProcessInfo processInfo] globallyUniqueString],
[[NSProcessInfo processInfo] hostName],
[[NSProcessInfo processInfo] operatingSystemName],
[[NSProcessInfo processInfo] operatingSystemVersionString],
[[NSProcessInfo processInfo] physicalMemory],
[[NSProcessInfo processInfo] processName]);

/*
uniqueIdentifier:21cfef1f0eae1eca0b1837b076a7065b8b02f14f
name:HL-030 iPod
systemName:iPhone OS
systemVersion:4.1
model:iPod touch
localizedModel:iPod touch
butteryLevel:-1.000000
*/
NSLog(@"uniqueIdentifier:%@\n
name:%@\n systemName:%@\n systemVersion:%@\n model:%@\n localizedModel:%@\n butteryLevel:%f\n",
[UIDevice currentDevice].uniqueIdentifier,
[UIDevice currentDevice].name,
[UIDevice currentDevice].systemName,
[UIDevice currentDevice].systemVersion,
[UIDevice currentDevice].model,
[UIDevice currentDevice].localizedModel,
[UIDevice currentDevice].batteryLevel
);

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: