iOS分辨率 屏幕宽高 屏幕大小 屏幕尺寸

//
//获取 屏幕宽高 最熟悉的时 下面的,
#define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height

//如果用上面的 获取5的宽高还是320 480 ,肿么办  那就用下面的吧 
#define SCREEN_WIDTH [[UIScreen mainScreen] currentMode].size.width
#define SCREEN_HEIGHT [[UIScreen mainScreen] currentMode].size.height

///下面的和上面的区别是 他获取的宽高 不包含状态栏
[[[UIDevice currentDevice] systemVersion] floatValue]


    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适配)

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


转载于:https://my.oschina.net/liuchuanfeng/blog/220497

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值