获取 Iphone 手机信息

来源:互联网 发布:c语言字符串连接函数 编辑:程序博客网 时间:2024/04/30 03:37
  1. NSString* identifierNumber = [[UIDevice currentDevice] uniqueIdentifier];   
  2. NSLog(@"手机序列号: %@",identifierNumber);   
  3. //手机别名: 用户定义的名称    
  4. NSString* userPhoneName = [[UIDevice currentDevice] name];   
  5. NSLog(@"手机别名: %@", userPhoneName);   
  6. //设备名称    
  7. NSString* deviceName = [[UIDevice currentDevice] systemName];   
  8. NSLog(@"设备名称: %@",deviceName );   
  9. //手机系统版本    
  10. NSString* phoneVersion = [[UIDevice currentDevice] systemVersion];   
  11. NSLog(@"手机系统版本: %@", phoneVersion);   
  12. //手机型号    
  13. NSString* phoneModel = [[UIDevice currentDevice] model];   
  14. NSLog(@"手机型号: %@",phoneModel );   
  15. //地方型号  (国际化区域名称)    
  16. NSString* localPhoneModel = [[UIDevice currentDevice] localizedModel];   
  17. NSLog(@"国际化区域名称: %@",localPhoneModel );   
0 0