/*
iPhone 5s : w===320.000000,h===568.000000
iPhone SE : w===320.000000,h===568.000000
iPhone 6 : w===375.000000,h===667.000000
iPhone 6s : w===375.000000,h===667.000000
iPhone 7 : w===375.000000,h===667.000000
iPhone 8 : w===375.000000,h===667.000000
iPhone 6 plus : w===414.000000,h===736.000000
iPhone 6s plus : w===414.000000,h===736.000000
iPhone 7 plus : w===414.000000,h===736.000000
iPhone 8 plus : w===414.000000,h===736.000000
iPhone X : w===375.000000,h===812.000000
iPhone XS : w===375.000000,h===812.000000
iPhone XR : w===414.000000,h===896.000000
iPhone XS Max : w===414.000000,h===896.000000
*/
宏定义各个尺寸
#ifdef DEBUG
#define ISDEBUG YES
#else
#define ISDEBUG NO
#endif
//屏幕高宽
#define SCREEN_H CGRectGetHeight([[UIScreen mainScreen] bounds])
#define SCREEN_W CGRectGetWidth([[UIScreen mainScreen] bounds])
#define SCREEN_MIN MIN(SCREEN_H,SCREEN_W)
#define SCREEN_MAX MAX(SCREEN_H,SCREEN_W)
#define SCALE_MAX (MAX(SCREEN_H,SCREEN_W))/667
#define SCALE_MIN (MIN(SCREEN_H,SCREEN_W))/375
//导航栏
#define IPHONEX (([UIScreen mainScreen].bounds.size.height>=812)?1:0)
#define NAVIGA_H (IPHONEX?88:64)
#define STATUS_H (IPHONEX?44:20)
#define TABBAR_H (IPHONEX?83:49)
#define TOPBAR_H (IPHONEX?24:0)
#define BOTTOM_H (IPHONEX?34:0)
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]