ios设备_ios设备未授权错误码25105 - CSDN
  • iOS 获取设备型号

    2019-09-24 15:19:09
    #import <sys/utsname.h> // 头文件导入后 直接调用 struct utsname systemInfo; + (NSString *)iphoneType { uname(&systemInfo);... NSString *phoneType = [NSString stringWithCString:systemInfo....
    #import <sys/utsname.h> // 头文件导入后 直接调用
    struct utsname systemInfo;
    
    + (NSString *)iphoneType {
    
        uname(&systemInfo);
        NSString *phoneType = [NSString stringWithCString:systemInfo.machine encoding:NSASCIIStringEncoding];
    
        if([phoneType  isEqualToString:@"iPhone1,1"])  return @"iPhone 2G";
    
        if([phoneType  isEqualToString:@"iPhone1,2"])  return @"iPhone 3G";
    
        if([phoneType  isEqualToString:@"iPhone2,1"])  return @"iPhone 3GS";
    
        if([phoneType  isEqualToString:@"iPhone3,1"])  return @"iPhone 4";
    
        if([phoneType  isEqualToString:@"iPhone3,2"])  return @"iPhone 4";
    
        if([phoneType  isEqualToString:@"iPhone3,3"])  return @"iPhone 4";
    
        if([phoneType  isEqualToString:@"iPhone4,1"])  return @"iPhone 4S";
    
        if([phoneType  isEqualToString:@"iPhone5,1"])  return @"iPhone 5";
    
        if([phoneType  isEqualToString:@"iPhone5,2"])  return @"iPhone 5";
    
        if([phoneType  isEqualToString:@"iPhone5,3"])  return @"iPhone 5c";
    
        if([phoneType  isEqualToString:@"iPhone5,4"])  return @"iPhone 5c";
    
        if([phoneType  isEqualToString:@"iPhone6,1"])  return @"iPhone 5s";
    
        if([phoneType  isEqualToString:@"iPhone6,2"])  return @"iPhone 5s";
    
        if([phoneType  isEqualToString:@"iPhone7,1"])  return @"iPhone 6 Plus";
    
        if([phoneType  isEqualToString:@"iPhone7,2"])  return @"iPhone 6";
    
        if([phoneType  isEqualToString:@"iPhone8,1"])  return @"iPhone 6s";
    
        if([phoneType  isEqualToString:@"iPhone8,2"])  return @"iPhone 6s Plus";
    
        if([phoneType  isEqualToString:@"iPhone8,4"])  return @"iPhone SE";
    
        if([phoneType  isEqualToString:@"iPhone9,1"])  return @"iPhone 7";
    
        if([phoneType  isEqualToString:@"iPhone9,2"])  return @"iPhone 7 Plus";
    
        if([phoneType  isEqualToString:@"iPhone10,1"]) return @"iPhone 8";
    
        if([phoneType  isEqualToString:@"iPhone10,4"]) return @"iPhone 8";
    
        if([phoneType  isEqualToString:@"iPhone10,2"]) return @"iPhone 8 Plus";
    
        if([phoneType  isEqualToString:@"iPhone10,5"]) return @"iPhone 8 Plus";
    
        if([phoneType  isEqualToString:@"iPhone10,3"]) return @"iPhone X";
    
        if([phoneType  isEqualToString:@"iPhone10,6"]) return @"iPhone X";
    
        if([phoneType  isEqualToString:@"iPhone11,8"]) return @"iPhone XR";
    
        if([phoneType  isEqualToString:@"iPhone11,2"]) return @"iPhone XS";
    
        if([phoneType  isEqualToString:@"iPhone11,4"]) return @"iPhone XS Max";
    
        if([phoneType  isEqualToString:@"iPhone11,6"]) return @"iPhone XS Max";
    
        
        return phoneType;
    }
    
    展开全文
  • ios获取设备信息总结

    2014-12-08 20:38:54
    总结ios中获取一些设备信息的做法
    1、获取设备的信息
    UIDevice *device = [[UIDevice alloc] int];
    NSString *name = device.name;		//获取设备所有者的名称
    NSString *model = device.name;		//获取设备的类别
    NSString *type = device.localizedModel; //获取本地化版本
    NSString *systemName = device.systemName;	//获取当前运行的系统
    NSString *systemVersion = device.systemVersion;//获取当前系统的版本

    2、获取设备的唯一标示符
    NSString *identifier = [[[UIDevice currentDevice] identifierForVendor] UUIDString];

    3、为系统创建一个随机的标示符
    (NSString*) createUUID
    {
    	NSString *id = [[NSUserDefaults standardUserDefaults] objectForKey:@"UUID"]; 	//获取标识为"UUID"的值
    	if(id == nil)
    	{
    		if([[[UIDevice currentDevice] systemVersion] floatValue] > 6.0)
    		{
    			NSString *identifierNumber = [[NSUUID UUID] UUIDString]; 				//ios 6.0 之后可以使用的api
    			[[NSUserDefaults standardUserDefaults] setObject:identifierNumber forKey:@"UUID"];	//保存为UUID
    			[[NSUserDefaults standardUserDefaults] synchronize];
    		}
    		else{
    			CFUUIDRef uuid = CFUUIDCreate(NULL);
    			CFStringRef uuidString = CFUUIDCreateString(NULL, uuid);      				//ios6.0之前使用的api
    			NSString *identifierNumber = [NSString stringWithFormat:@"%@", uuidString];
    			[[NSUserDefaults standardUserDefaults] setObject:identifierNumber forKey:@"UUID"];
    			[[NSUserDefaults standardUserDefaults] synchronize];
    			CFRelease(uuidString);
    			CFRelease(uuid);
    		}
    		return [[NSUserDefaults standardUserDefaults] objectForKey@"UUID"];
    	}
    	return id;
    }

    4、获取当前屏幕分辨率的信息
    CGRect rect = [[UIScreen mainScreen] bounds];
    CGFloat scale = [[UIScreen mainScreen].scale];
    CGFloat width = rect.size.width * scale;
    CGFloat height = rect.size.height * scale;

    5、获取运营商的信息
    需要先导入头文件
    #import <CoreTelephony/CTCarrier.h>
    #import <CoreTelephony/CTTelephonyNetworkInfo.h>

    创建对象

    CCTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init];

    获取运行商的名称
    CTCarrier *carrier = [info subscriberCellularProvider];
    NSString *mCarrier = [NSString stringWithFormat:@"%@",[carrier carrierName]];

    获取当前网络的类型
    ios7之后可以按照以下方式获取。方便而且类型多
    NSString *mConnectType = [[NSString alloc] initWithFormat:@"%@",info.currentRadioAccessTechnology];

    类型有以下:
     CTRadioAccessTechnologyGPRS      	//介于2G和3G之间,也叫2.5G ,过度技术  
     CTRadioAccessTechnologyEdge       	//EDGE为GPRS到第三代移动通信的过渡,EDGE俗称2.75G 
     CTRadioAccessTechnologyWCDMA         
     CTRadioAccessTechnologyHSDPA        	//亦称为3.5G(3?G)
     CTRadioAccessTechnologyHSUPA        	//3G到4G的过度技术
     CTRadioAccessTechnologyCDMA1x   	//3G    
     CTRadioAccessTechnologyCDMAEVDORev0    //3G标准
     CTRadioAccessTechnologyCDMAEVDORevA  
     CTRadioAccessTechnologyCDMAEVDORevB  
     CTRadioAccessTechnologyeHRPD     	//电信使用的一种3G到4G的演进技术, 3.75G     
     CTRadioAccessTechnologyLTE   		//接近4G 

    ios7之前的话apple给我们提供了Reachability来获取。
    首先要导入SystemConfiguration.framework,把下载下来的Reachability.h和Reachability.m加进项目中
    Reachability *reach = [Reachability reachabilityWithHostName:@"www.apple.com"];
    switch([reach currentReachabilityStatus])
    {
    	case NotReachable:  //没有连接上
    		//do something
    		break;
    	case ReachableViaWiFi:	//通过wifi连接
    		//do something
    		break;
    	case ReachableViaWWAN:	//通过GPRS连接
    		//do something
    		break;
    	default:	<span style="white-space:pre">	</span>//未知情况
    		//do something
    		break;
    }
    http://blog.csdn.net/qijianli/article/details/19922653 这个博客还说了其它的方法,不过因为是调用私有API,所以没有采用。

    6、获取当前信号的强弱
    这个貌似没有给出官方的api,但是网上有人说可以用私有的api实现,但是通不过appStore的审核,方法如下:
    利用linux下动态库显式调用api的函数。先包含头文件 #import <dlfcn.h>
    (int) getSignalLevel
    {
    void *libHandle = dlopen("/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony",RTLD_LAZY);//获取库句柄
    int (*CTGetSignalStrength)(); //定义一个与将要获取的函数匹配的函数指针
    CTGetSignalStrength = (int(*)())dlsym(libHandle,"CTGetSignalStrength"); //获取指定名称的函数
    
    if(CTGetSignalStrength == NULL)
    	return -1;
    else{
    	int level = CTGetSignalStrength();
    	dlclose(libHandle); //切记关闭库
    	return level
    	}
    }

    7、设备震动
    需要加入AudioToolbox framework,导入头文件 #import <AudioToolbox/AudioToolbox.h>
    在需要震动的地方添加代码:
    AudioServicesPlaySystemSound ( kSystemSoundID_Vibrate) ;
    但是貌似这个不支持传入震动时间和模式,自己去控制吧。


    8、获取电池的相关信息
    @implementation BatterMonitor
    //获取电池当前的状态,共有4种状态
    -(NSString*) getBatteryState {  
        UIDevice *device = [UIDevice currentDevice];  
        if (device.batteryState == UIDeviceBatteryStateUnknown) {  
            return @"UnKnow";  
        }else if (device.batteryState == UIDeviceBatteryStateUnplugged){  
            return @"Unplugged";  
        }else if (device.batteryState == UIDeviceBatteryStateCharging){  
            return @"Charging";  
        }else if (device.batteryState == UIDeviceBatteryStateFull){  
            return @"Full";  
        }
    	return nil;	
    } 
    //获取电量的等级,0.00~1.00
    -(float) getBatteryLevel {  
    	return [UIDevice currentDevice].batteryLevel;
    } 
    
    -(void) getBatteryInfo
    {
    	NSString *state = getBatteryState();
    	float level = getBatteryLevel()*100.0;
    	//yourControlFunc(state, level);  //写自己要实现的获取电量信息后怎么处理
    }
    
    //打开对电量和电池状态的监控,类似定时器的功能
    -(void) didLoad
    {
    	[[UIDevice currentDevice] setBatteryMonitoringEnable:YES];
    	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getBatteryInfo:) name:UIDeviceBatteryStateDidChangeNotification object:nil];
    	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getBatteryInfo:) name:UIDeviceBatteryLevelDidChangeNotification object:nil];
    	[NSTimer scheduledTimerWithTimeInterval:0.5f target:self selector:@selector(getBatteryInfo:) userInfo:nil repeats:YES];
    }
    @end

    9app中打开一个网页
    这个比较简单,直接用提供的接口openURL即可。
    NSString *url = @"www.apple.com"
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];

    10、app中打开另一个app

    打开另一个app还是可以通过openURL来实现。但是要分两种情况。第一种是启动内置的应用,一般的电话,浏览器,短信和

    邮件可以直接调用并添加参数,譬如

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://devprograms@apple.com"]];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://10086"]];

    第二种情况是要打开自己开发的app,这种情况则要为将要打开的app注册一个URL协议。这个可以在项目的文件info.plist中注册。主要操作为: 

    Step1. 右键,选择“Add Row”

    Step2. Key值选择“URL types”

    Step3. 打开“Item 0″,然后为该key增加一个URL identifier。可以是任何值,但建议用“反域名”(例如 “com.fcplayer.testHello”)。

    Step4. 在“Item 0”下再加一行。

    Step5. 选择“URL Schemes” 作为Key。

    Step6. 输入你的URL协议名 (例如“testHello://” 应写做“testHello”)。如果有必要,你可以在这里加入多个协议。

    其实在打开的时候只需要URL Schemes即可,URL identifier是可选项。如果需要传送参数,可以在URL Schemes://添加你的参数,格式和网页开发的传递参数差不多。(又或者URL Schemes://URL identifier@添加的参数)关键是要和接收参数方定义好处理的方式。然后在需要打开的地方添加代码:

    NSString *url = @"URL Schemes的路径"
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];

    如有错误,请不吝指正,谢谢















    展开全文
  • 因为我的项目是unity的,所以把NSString转成char,这个获取方法包含比较新的iPhone XR,XS,XS Max等 具体可以参考...char* nmg_util_getDeviceModelName() { struct utsname systemInfo; uname(&am...

    因为我的项目是unity的,所以把NSString转成char,这个获取方法包含比较新的iPhone XR,XS,XS Max等
    具体可以参考https://www.theiphonewiki.com/wiki/Models
    char* nmg_util_getDeviceModelName()
    {

        struct utsname systemInfo;
        
        uname(&systemInfo);
        
        NSString*platform = [NSString stringWithCString: systemInfo.machine encoding:NSASCIIStringEncoding];
        NSString *sysDeviceModelName = @"";
        if([platform isEqualToString:@"iPhone1,1"])  sysDeviceModelName = @"iPhone 2G";
        
        if([platform isEqualToString:@"iPhone1,2"])  sysDeviceModelName = @"iPhone 3G";
        
        if([platform isEqualToString:@"iPhone2,1"])  sysDeviceModelName = @"iPhone 3GS";
        
        if([platform isEqualToString:@"iPhone3,1"])  sysDeviceModelName = @"iPhone 4";
        
        if([platform isEqualToString:@"iPhone3,2"])  sysDeviceModelName = @"iPhone 4";
        
        if([platform isEqualToString:@"iPhone3,3"])  sysDeviceModelName = @"iPhone 4";
        
        if([platform isEqualToString:@"iPhone4,1"])  sysDeviceModelName = @"iPhone 4S";
        
        if([platform isEqualToString:@"iPhone5,1"])  sysDeviceModelName = @"iPhone 5";
        
        if([platform isEqualToString:@"iPhone5,2"])  sysDeviceModelName = @"iPhone 5";
        
        if([platform isEqualToString:@"iPhone5,3"])  sysDeviceModelName = @"iPhone 5c";
        
        if([platform isEqualToString:@"iPhone5,4"])  sysDeviceModelName = @"iPhone 5c";
        
        if([platform isEqualToString:@"iPhone6,1"])  sysDeviceModelName = @"iPhone 5s";
        
        if([platform isEqualToString:@"iPhone6,2"])  sysDeviceModelName = @"iPhone 5s";
        
        if([platform isEqualToString:@"iPhone7,1"])  sysDeviceModelName = @"iPhone 6 Plus";
        
        if([platform isEqualToString:@"iPhone7,2"])  sysDeviceModelName = @"iPhone 6";
        
        if([platform isEqualToString:@"iPhone8,1"])  sysDeviceModelName = @"iPhone 6s";
        
        if([platform isEqualToString:@"iPhone8,2"])  sysDeviceModelName = @"iPhone 6s Plus";
        
        if([platform isEqualToString:@"iPhone8,4"])  sysDeviceModelName = @"iPhone SE";
        
        if([platform isEqualToString:@"iPhone9,1"])  sysDeviceModelName = @"iPhone 7";
        
        if([platform isEqualToString:@"iPhone9,3"])  sysDeviceModelName = @"iPhone 7";
        
        if([platform isEqualToString:@"iPhone9,2"])  sysDeviceModelName = @"iPhone 7 Plus";
        
        if([platform isEqualToString:@"iPhone9,4"])  sysDeviceModelName = @"iPhone 7 Plus";
        
        if([platform isEqualToString:@"iPhone10,1"]) sysDeviceModelName = @"iPhone 8";
        
        if([platform isEqualToString:@"iPhone10,4"]) sysDeviceModelName = @"iPhone 8";
        
        if([platform isEqualToString:@"iPhone10,2"]) sysDeviceModelName = @"iPhone 8 Plus";
        
        if([platform isEqualToString:@"iPhone10,5"]) sysDeviceModelName = @"iPhone 8 Plus";
        
        if([platform isEqualToString:@"iPhone10,3"]) sysDeviceModelName = @"iPhone X";
        
        if([platform isEqualToString:@"iPhone10,6"]) sysDeviceModelName = @"iPhone X";
    	
    	if([platform isEqualToString:@"iPhone11,8"]) sysDeviceModelName = @"iPhone XR";
        
        if([platform isEqualToString:@"iPhone11,2"]) sysDeviceModelName = @"iPhone XS";
    	
    	if([platform isEqualToString:@"iPhone11,6"]) sysDeviceModelName = @"iPhone XS Max";
        
        if([platform isEqualToString:@"iPod1,1"])  sysDeviceModelName = @"iPod Touch 1G";
        
        if([platform isEqualToString:@"iPod2,1"])  sysDeviceModelName = @"iPod Touch 2G";
        
        if([platform isEqualToString:@"iPod3,1"])  sysDeviceModelName = @"iPod Touch 3G";
        
        if([platform isEqualToString:@"iPod4,1"])  sysDeviceModelName = @"iPod Touch 4G";
        
        if([platform isEqualToString:@"iPod5,1"])  sysDeviceModelName = @"iPod Touch 5G";
        
        if([platform isEqualToString:@"iPad1,1"])  sysDeviceModelName = @"iPad 1G";
        
        if([platform isEqualToString:@"iPad2,1"])  sysDeviceModelName = @"iPad 2";
        
        if([platform isEqualToString:@"iPad2,2"])  sysDeviceModelName = @"iPad 2";
        
        if([platform isEqualToString:@"iPad2,3"])  sysDeviceModelName = @"iPad 2";
        
        if([platform isEqualToString:@"iPad2,4"])  sysDeviceModelName = @"iPad 2";
        
        if([platform isEqualToString:@"iPad2,5"])  sysDeviceModelName = @"iPad Mini 1G";
        
        if([platform isEqualToString:@"iPad2,6"])  sysDeviceModelName = @"iPad Mini 1G";
        
        if([platform isEqualToString:@"iPad2,7"])  sysDeviceModelName = @"iPad Mini 1G";
        
        if([platform isEqualToString:@"iPad3,1"])  sysDeviceModelName = @"iPad 3";
        
        if([platform isEqualToString:@"iPad3,2"])  sysDeviceModelName = @"iPad 3";
        
        if([platform isEqualToString:@"iPad3,3"])  sysDeviceModelName = @"iPad 3";
        
        if([platform isEqualToString:@"iPad3,4"])  sysDeviceModelName = @"iPad 4";
        
        if([platform isEqualToString:@"iPad3,5"])  sysDeviceModelName = @"iPad 4";
        
        if([platform isEqualToString:@"iPad3,6"])  sysDeviceModelName = @"iPad 4";
        
        if([platform isEqualToString:@"iPad4,1"])  sysDeviceModelName = @"iPad Air";
        
        if([platform isEqualToString:@"iPad4,2"])  sysDeviceModelName = @"iPad Air";
        
        if([platform isEqualToString:@"iPad4,3"])  sysDeviceModelName = @"iPad Air";
        
        if([platform isEqualToString:@"iPad4,4"])  sysDeviceModelName = @"iPad Mini 2G";
        
        if([platform isEqualToString:@"iPad4,5"])  sysDeviceModelName = @"iPad Mini 2G";
        
        if([platform isEqualToString:@"iPad4,6"])  sysDeviceModelName = @"iPad Mini 2G";
        
        if([platform isEqualToString:@"iPad4,7"])  sysDeviceModelName = @"iPad Mini 3";
        
        if([platform isEqualToString:@"iPad4,8"])  sysDeviceModelName = @"iPad Mini 3";
        
        if([platform isEqualToString:@"iPad4,9"])  sysDeviceModelName = @"iPad Mini 3";
        
        if([platform isEqualToString:@"iPad5,1"])  sysDeviceModelName = @"iPad Mini 4";
        
        if([platform isEqualToString:@"iPad5,2"])  sysDeviceModelName = @"iPad Mini 4";
        
        if([platform isEqualToString:@"iPad5,3"])  sysDeviceModelName = @"iPad Air 2";
        
        if([platform isEqualToString:@"iPad5,4"])  sysDeviceModelName = @"iPad Air 2";
        
        if([platform isEqualToString:@"iPad6,3"])  sysDeviceModelName = @"iPad Pro 9.7";
        
        if([platform isEqualToString:@"iPad6,4"])  sysDeviceModelName = @"iPad Pro 9.7";
        
        if([platform isEqualToString:@"iPad6,7"])  sysDeviceModelName = @"iPad Pro 12.9";
        
        if([platform isEqualToString:@"iPad6,8"])  sysDeviceModelName = @"iPad Pro 12.9";
    	
    	if([platform isEqualToString:@"iPad6,11"])  sysDeviceModelName = @"iPad 5";
        
        if([platform isEqualToString:@"iPad6,12"])  sysDeviceModelName = @"iPad 5";
    	
    	if([platform isEqualToString:@"iPad7,1"])  sysDeviceModelName = @"iPad Pro 12.9";
        
        if([platform isEqualToString:@"iPad7,2"])  sysDeviceModelName = @"iPad Pro 12.9";
    	
    	if([platform isEqualToString:@"iPad7,3"])  sysDeviceModelName = @"iPad Pro 10.5";
        
        if([platform isEqualToString:@"iPad7,4"])  sysDeviceModelName = @"iPad Pro 10.5";
    			
    	if([platform isEqualToString:@"iPad7,5"])  sysDeviceModelName = @"iPad 6";
        
        if([platform isEqualToString:@"iPad7,6"])  sysDeviceModelName = @"iPad 6";
    			
    	if([platform isEqualToString:@"iPad8,1"])  sysDeviceModelName = @"iPad Pro 11";
        
        if([platform isEqualToString:@"iPad8,2"])  sysDeviceModelName = @"iPad Pro 11";
    			
    	if([platform isEqualToString:@"iPad8,3"])  sysDeviceModelName = @"iPad Pro 11";
        
        if([platform isEqualToString:@"iPad8,4"])  sysDeviceModelName = @"iPad Pro 11";
    			
    	if([platform isEqualToString:@"iPad8,5"])  sysDeviceModelName = @"iPad Pro 12.9";
        
        if([platform isEqualToString:@"iPad8,6"])  sysDeviceModelName = @"iPad Pro 12.9";
    					
    	if([platform isEqualToString:@"iPad8,7"])  sysDeviceModelName = @"iPad Pro 12.9";
        
        if([platform isEqualToString:@"iPad8,8"])  sysDeviceModelName = @"iPad Pro 12.9";
    	        
        if([platform isEqualToString:@"iPad11,3"])  sysDeviceModelName = @"iPad Air 3";
        
        if([platform isEqualToString:@"iPad11,4"])  sysDeviceModelName = @"iPad Air 3";
        
        if([platform isEqualToString:@"i386"])  sysDeviceModelName = @"iPhone Simulator";
        
        if([platform isEqualToString:@"x86_64"])  sysDeviceModelName = @"iPhone Simulator";
        
        NSLog(@"[NMGUtilUnity] nmg_util_getDeviceModelName:%@",sysDeviceModelName);
        return (char*)[sysDeviceModelName UTF8String];
    }
    
    展开全文
  • 全部列在这里吧。方便自己方便别人。保持更新……   iPhone: iPhone 1G 320x480 iPhone 3G 320x480 iPhone 3GS 320x480 iPhone 4 640x960 iPhone 4S 640x960 iPhone 5 640x1136 ...iPhone 6 ...

    全部列在这里吧。方便自己方便别人。保持更新……

     

    iPhone:

    iPhone 1G 320x480

    iPhone 3G 320x480

    iPhone 3GS 320x480

    iPhone 4 640x960

    iPhone 4S 640x960

    iPhone 5 640x1136

    iPhone 5S 640x1136

    iPhone 5C 640x1136

    iPhone 6 750x1334

    iPhone 6 Plus 1080x1920 (开发应按照1242x2208适配)

    iPhone 6S 750x1334

    iPhone 6S Plus 1080x1920 (开发应按照1242x2208适配)

    iPhone SE 640x1136

    iPhone 7 750x1334

    iPhone 7 Plus 1080x1920 (开发应按照1242x2208适配)

    iPhone 8 750x1334

    iPhone 8 Plus 1080x1920(开发应按照1242x2208适配)

    iPhone X 1125x2436(开发应按照1242x2800适配)

     

    iPod Touch:

    iPod Touch 1G 320x480

    iPod Touch 2G 320x480

    iPod Touch 3G 320x480

    iPod Touch 4G 640x960

    iPod Touch 5G 640x1136

     

    iPad:

    iPad 1 1024x768

    iPad 2 1024x768

    The New iPad 2048x1536

    iPad mini 1024x768

    iPad 4 2048x1536

    iPad Air 2048x1536

    iPad mini 2 2048x1536

    iPad Air 2 2048x1536

    iPad mini 3 2048x1536

    iPad mini 4 2048x1536

    iPad Pro 2732x2048

    iPad 2048x1536

    展开全文
  • 最新最全的获取iOS设备型号(更新至iPhone6s/iPhone6s+/iPad mini 4/iPad Air 2) 参考:https://www.theiphonewiki.com/wiki/Models ,这个是苹果官方的设备类型说明,可以参考一下 //获得设备型号 - ...
  • 如何获取 iOS 设备的唯一 IDCFUUID 每次调用 CFUUIDCreate 系统都会返回一个全新的唯一 ID. 如果想永久保存这个 ID,需要自己处理,可以一次获取后,存在 NSUserDefaults,Keychain,Pasteboard 等,下次再从这其中...
  • iOS设备型号

    2017-11-17 14:17:00
    所有设备型号对应的官网地址: 官网地址: https://www.theiphonewiki.com/wiki/Models 如果你懒得整理了,直接复制我下边代码: + (NSString *)getDeviceType {  struct utsname systemInfo; ...
  •     各种获取设备唯一标识的方法...UDID的全称是Unique Device Identifier,它就是苹果iOS设备的唯一识别码,它由40位16进制数的字母和数字组成(越狱的设备通过某些工具可以改变设备的UDID)。移动网络可利用U...
  • 1.第一步登陆苹果开发者中心官网,进入证书栏后如下图:点击All 或者...     2.在如下的网页填入姓名和UDID,然后就是继续和下一部。 UDID在Xcode的Windows---Device....   ...3.从添加设备后,配置描述文件,Develpment-
  • // 获取App相关的信息 let infoDic = Bundle.main.infoDictionary // 获取App的版本号 var appVersion :String { guard let infoDic = infoDic else { return "获取APP版本号失败"...
  • ios设备抓包方法

    2013-03-15 13:43:46
    ios设备抓包方法 对终端进行抓包是客户端测试中的一种重要手段。本文主要介绍了ios设备(iphone、ipad和ipodtouch)的几种常用的抓包方法。 一、准备条件 需要进行抓包的设备必须经过root,俗称越狱,主要利用...
  • 今天在iOS设备上安装天翼云存储app,在safari上直接打开http://cloud.189.cn/wap/index.jsp,点击“点击免费安装”,如下图: 神奇的事情发生了,设备上直接下载app然后安装了,不需要经过app stroe。安装完后第一...
  • iOS设备唯一标识符解决方案最近在公司的项目中有记录设备唯一标识符的需求,通过唯一标识符去识别设备的注册类别从而进行角色的切换,在这个过程中查找了一些资料,在此稍作总结,留下一些痕迹,当然能给有同类需求的伙伴...
  • 接上篇研究WebDriverAgent之后,我采取了委曲求全的办法,最终终于能够让Airtest IDE连上IOS设备了… 本文内容需要结合上篇博客内容WebDriverAgent踩坑-Xcode11.5观看才能产生最佳的观影效果,哦不,阅读效果。。 ...
  • 通过iOS设备控制PC可能较为常见,App Store也有不少类似的应用,但是通过PC控制iOS相信大家很难在网上找到解决方案,能找到的也大部分是需要依赖越狱来实现。 安卓提供了强大的adb工具,能轻松实现类似的功能。但...
  • IOS设备如果没有越狱的话想获取一些敏感的信息还是有写复杂的,比如获取上网信息,短信,通话记录等等这些,但是有一个通用的方法可以获取到这些信息,那就是IOS 设备的备份功能。文章不涉及如何备份以及恢复的原理...
  • 如果客户的iOS设备不是越狱的,你只好通过 ad-hoc 模式,将生产的 ad-hoc profile 和 ipa 文件发给客户。 (如何生成这两个文件,不在此赘述)。  客户如何安装这两个文件,这是我一直头疼的。 我们...
  • arm结构处理器,因为低功耗和小尺寸而闻名,几乎所有的手机都基于arm,其在嵌入式系统...只有在IOS设备上,才会执行设备对应的arm指令集。  armv6, armv7, armv7s arm64实质是arm cpu的不同指令集,原则上是向下兼容
  • ios设备中,JS执行focus方法,无法调起键盘 问题背景: 移动端开发,有一个input输入框(默认输入框是disabled,不能编辑的),需要点击一个“修改”按钮,使input能编辑,并聚焦弹起软键盘。所以,在点击“修改”...
  •  最近在微博上看到iOS开发者遇到的设置支持的iOS设备问题,问题是这样的,有些apps在开发过程中会用到比较多的内存,比如需要512m的内存,因此需要设置不支持内存不足512m的设备。  1、请看关于各个iOS设备的...
1 2 3 4 5 ... 20
收藏数 187,152
精华内容 74,860
关键字:

ios设备