IOS成长之路-获取设备的信息

来源:互联网 发布:如何看待b站下架 知乎 编辑:程序博客网 时间:2024/06/05 04:33
  1. NSLog(@"globallyUniqueString=%@",[[NSProcessInfo processInfo] globallyUniqueString]);//全球唯一标识  
  2. NSLog(@"uniqueIdentifie=%@",[UIDevice currentDevice].uniqueIdentifier);//唯一的标识 可用于区分设备  
  3. NSLog(@"name=%@",[UIDevice currentDevice].name);//设备的名称  李四的 iPad、王五的 iPad .。。  
  4. NSLog(@"systemName=%@",[UIDevice currentDevice].systemName);//系统的名称  iPhone OS  
  5. NSLog(@"systemVersion=%@",[UIDevice currentDevice].systemVersion);//设备系统的版本号  5.1.1、6.0  
  6. NSLog(@"model=%@",[UIDevice currentDevice].model);//设备的型号   iPad、iphone、ipod touch。。。  
  7. NSLog(@"localizedModel=%@",[UIDevice currentDevice].localizedModel);//本地化的模型  iPad  
  8. NSLog(@"batteryLevel=%lf",[UIDevice currentDevice].batteryLevel);//电池电量
0 0