- NSLog(@"globallyUniqueString=%@",[[NSProcessInfo processInfo] globallyUniqueString]);//全球唯一标识
- NSLog(@"uniqueIdentifie=%@",[UIDevice currentDevice].uniqueIdentifier);//唯一的标识 可用于区分设备
- NSLog(@"name=%@",[UIDevice currentDevice].name);//设备的名称 李四的 iPad、王五的 iPad .。。
- NSLog(@"systemName=%@",[UIDevice currentDevice].systemName);//系统的名称 iPhone OS
- NSLog(@"systemVersion=%@",[UIDevice currentDevice].systemVersion);//设备系统的版本号 5.1.1、6.0
- NSLog(@"model=%@",[UIDevice currentDevice].model);//设备的型号 iPad、iphone、ipod touch。。。
- NSLog(@"localizedModel=%@",[UIDevice currentDevice].localizedModel);//本地化的模型 iPad
- NSLog(@"batteryLevel=%lf",[UIDevice currentDevice].batteryLevel);//电池电量
NSProcessInfo *info = [NSProcessInfo processInfo];
HYLog(@"%@---\n%d----\n%d----\n%@----\n%@----\n%@---\n%@----\n%d------\n%@----\n%@",info.processName,
info.processorCount,
info.processIdentifier,
info.arguments,
info.hostName,
info.environment,
info.globallyUniqueString,info.operatingSystem,info.operatingSystemVersionSt
HYLog(@"globallyUniqueString:%@\nhostName:%@\noprerationSystemName:%@\noperatingSystemVersionS
[info globallyUniqueString],
[info hostName],
[info operatingSystemName],
[info operatingSystemVersionSt
[info physicalMemory]/(1024*1024),
[info processName],
[info systemUptime],
[info processorCount],
[info activeProcessorCount]);
NSLog(@"uniqueIdentifier:%@\n name:%@\n systemName:%@\n systemVersion:%@\n model:%@\n localizedModel:%@\n butteryLevel:%.1f\n",
[UIDevice currentDevice].uniqueIdentifier,
[UIDevice currentDevice].name,
[UIDevice currentDevice].systemName,
[UIDevice currentDevice].systemVersion,
[UIDevice currentDevice].model,
[UIDevice currentDevice].localizedModel,
[UIDevice currentDevice].batteryLevel*100
);