iOS机型
来源:互联网 发布:python exchange 邮件 编辑:程序博客网 时间:2024/04/28 03:26
#include <sys/utsname.h>
#include <stdio.h>
#include <stdlib.h>
-(NSString*)getDeviceVersion
{
struct utsname systemInfo;
uname(&systemInfo);
NSString *deviceString = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
return deviceString;
}
struct utsname
{ char sysname[_UTSNAME_SYSNAME_LENGTH];//当前操作系统名
char nodename[_UTSNAME_NODENAME_LENGTH];//网络上的名称
char release[_UTSNAME_RELEASE_LENGTH];//当前发布级别
char version[_UTSNAME_VERSION_LENGTH];//当前发布版本
char machine[_UTSNAME_MACHINE_LENGTH];//当前硬件体系类型
#if _UTSNAME_DOMAIN_LENGTH - 0
/* Name of the domain of this node on the network. */
# ifdef __USE_GNU
char domainname[_UTSNAME_DOMAIN_LENGTH]; //当前域名
# else
char __domainname[_UTSNAME_DOMAIN_LENGTH];
# endif
#endif
};
{ char sysname[_UTSNAME_SYSNAME_LENGTH];//当前操作系统名
char nodename[_UTSNAME_NODENAME_LENGTH];//网络上的名称
char release[_UTSNAME_RELEASE_LENGTH];//当前发布级别
char version[_UTSNAME_VERSION_LENGTH];//当前发布版本
char machine[_UTSNAME_MACHINE_LENGTH];//当前硬件体系类型
#if _UTSNAME_DOMAIN_LENGTH - 0
/* Name of the domain of this node on the network. */
# ifdef __USE_GNU
char domainname[_UTSNAME_DOMAIN_LENGTH]; //当前域名
# else
char __domainname[_UTSNAME_DOMAIN_LENGTH];
# endif
#endif
};
0 0
- iOS机型
- iOS:机型参数
- iOS 获取设备机型
- iOS判断机型
- iOS判断机型
- iOS获取机型方式
- IOS点,分辨率,尺寸,机型
- iOS各机型参数对比
- iOS 获取手机的机型
- 机型
- 机型
- iOS:机型参数、sdk、xcode各版本
- IOS各个机型的屏幕尺寸
- iOS:机型参数、sdk、xcode各版本
- iOS:机型参数、sdk、xcode各版本
- ios 机型检测和网络检测
- iOS获取设备的机型名称
- iOS开发之设置兼容机型
- 0002-创建数据库和表空间
- CNN的近期进展与实用技巧(上)&&人脸识别简史与近期进展
- Swift 不完全函数第 2 部分:捕获前置条件错误
- C++第4次上机实验
- opencv霍夫直线检测和圆检测
- iOS机型
- 野指针--内存泄漏--缓存区溢出--栈溢出
- Spring+Swagger文档无法排序问题解决
- 第1课:通过案例对SparkStreaming 透彻理解三板斧之一
- css3滤镜-投影(DropShadow)滤镜
- KMP算法模板及问题解决
- 1014 Problem N
- DB2远程连接方法---------db2cmd
- 原码、反码和补码