// //获取 屏幕宽高 最熟悉的时 下面的, #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:php
iPhone 1G 320x480code
iPhone 3G 320x480开发
iPhone 3GS 320x480io
iPhone 4 640x960class
iPhone 4S 640x960float
iPhone 5 640x1136vi
iPhone 5S 640x1136co
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