#define kDevice_Is_iPhoneX \
({BOOL isPhoneX = NO;\
if (@available(iOS 11.0, *)) {\
isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;\
}\
(isPhoneX);})
#define IPX_STATUSBAROFFSETHEIGHT ((kDevice_Is_iPhoneX) ? 24.0 : 0.0)
#define IPX_HOMEINDICATORHEIGHT ((kDevice_Is_iPhoneX) ? 34.0 : 0.0)
#define STATUSBARHEIGHT (20.0 + IPX_STATUSBAROFFSETHEIGHT)
#define NAVIBARHEIGHT 44.0
#define tabBarItemHeight ((kDevice_Is_iPhoneX) ? 83.0 : 49.0)
#define IS_IPHONEX_SET \
({BOOL isPhoneX = NO;\
if (@available(iOS 11.0, *)) {\
isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;\
}\
(isPhoneX);})//是否是iPhoneX系列手机