iPhone尺寸概览

2021-09-01  本文已影响0人  菠萝吹雪xs
//iphone 12 pro max /13promax        3x          6.7in
#define iPhone12PROMAX     (ScrWidth == 428.f && ScrHeight == 926.f)

//iPhone 12 /12pro /13/13pro         3x          6.1in
#define iPhone12PRO     (ScrWidth == 390.f && ScrHeight == 844.f)

//iPhone 12mini /13mini         3x          5.4
#define iPhone12MINI     (ScrWidth == 360.f && ScrHeight == 780.f)

//iPhoneXS MAX /11 pro Max      3x      6.5in
#define iPhoneXSMAX     (ScrWidth == 414.f && ScrHeight == 896.f)

//iPhoneXR/11       2x     6.1in
#define iPhoneXR     (ScrWidth == 414.f && ScrHeight == 896.f)

//iPhoneX/XS/11pro      3x      5.8in
#define iPhoneX     (ScrWidth == 375.f && ScrHeight == 812.f)

//iPhone6/6s/7/8 -- plus       3x      5.5in
#define iphone8Plus     (ScrWidth == 414.f && ScrHeight == 736.f)

//iPhone6/6s/7/8/SE2/SE3       2x      4.7in
#define iPhone8     (ScrWidth == 375.f && ScrHeight == 667.f)

//iPhone5/5s/5c/SE1      2x      4.0in
#define iPhone5s     (ScrWidth == 320.f && ScrHeight == 568.f)

//iPhone2g/3/3gs/4/4s       1x和2x(4/4s)     3.5in
#define iPhone4s     (ScrWidth == 320.f && ScrHeight == 480.f)



//ipad1/2       1x和2x       9.7in
#define iPad2     (ScrWidth == 768.f && ScrHeight == 1024.f)

//ipad mini       1x        7.9in
#define iPadmini     (ScrWidth == 768.f && ScrHeight == 1024.f)

//ipad3/4/5 Air 2/4Pro           2x      9.7in
#define iPad5Air     (ScrWidth == 1536.f && ScrHeight == 2048.f)

//ipadmini 2/3/4        2x      7.9in
#define iPadmini4     (ScrWidth == 1536.f && ScrHeight == 2048.f)

//ipad pro-10.2        3x       10.2in
#define iPadPro2     (ScrWidth == 1080.f && ScrHeight == 810.f)

//ipad pro-10.5        3x       10.5in
#define iPadPro5     (ScrWidth == 834.f && ScrHeight == 1112.f)

//ipad Pro 11       2x          11.0in
#define iPadPro11     (ScrWidth == 834.f && ScrHeight == 1194.f)

//ipad pro-12.9        2x      12.9in
#define iPadPro12     (ScrWidth == 1024.f && ScrHeight == 1366.f)


上一篇下一篇

猜你喜欢

热点阅读