iOS 开发常用宏定义记录
#pragma mark 屏幕适配相关
//屏幕宽高
#define jSCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define jSCREENH_HEIGHT [UIScreen mainScreen].bounds.size.height
#pragma mark 设备判断
// 判断是否iPhone X
#define jIS_iPhoneX (UIApplication.sharedApplication.statusBarFrame.size.height > 20 ? YES : NO)
// 状态栏高度
#define jStatusBarHeight UIApplication.sharedApplication.statusBarFrame.size.height
// 顶部导航栏高度
#define jNavigationBarHeight (44.f + jStatusBarHeight)
// 底部安全距离
#define jTabBarBottomHeight (jIS_iPhoneX ? 34.f : 0.f)
// Tabbar高度
#define jTabbarHeight (jIS_iPhoneX?83:49)
#pragma mark - 字体、颜色相关
#define jFONT(f) [UIFont systemFontOfSize:(jRate *f )]
#define jFONT_BOLD(f) [UIFont boldSystemFontOfSize:( jRate * f)]
#define jFONT_ITALIC_SIZE(f) [UIFont italicSystemFontOfSize:(jRate * f)]
#define jRGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:1.f]
#define jRGB