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: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

相關文章
相關標籤/搜索