| | |
| | | #define IsRetain ([[UIScreen mainScreen] scale] >= 2.0) |
| | | #define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height |
| | | #define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width |
| | | #define kScreenBounds [UIScreen mainScreen].bounds |
| | | |
| | | |
| | | #define ScreenMaxLength (MAX(SCREEN_WIDTH, SCREEN_HEIGHT)) |
| | | #define ScreenMinLength (MIN(SCREEN_WIDTH, SCREEN_HEIGHT)) |
| | |
| | | #define IsiPhone5 (IsiPhone && ScreenMaxLength == 568.0) |
| | | #define IsiPhone6 (IsiPhone && ScreenMaxLength == 667.0) |
| | | #define IsiPhone6P (IsiPhone && ScreenMaxLength == 736.0) |
| | | #define IsiPhoneX (IsiPhone && ScreenMaxLength == 812.0) |
| | | |
| | | #define KyNavigationBarHeight 44.0f |
| | | #define KyTabBarHeight IPhoneX_Normal(83.0f,49.0f) |
| | | #define KyStatusBarHeight IPhoneX_Normal(44.0f,20.0f) |
| | | #define KcontentViewHeight kMainScreenHeight-KyNavigationBarHeight-KyTabBarHeight |
| | | #define KcontentTabViewHeight KcontentViewHeight-KyTabBarHeight |
| | | #define KCornerRadiusWidth 5.0f |
| | | #define KCornerBorderWidth 0.3f |
| | | #define KySafeAeraHeight 34.0 |
| | | #define IPhoneX_Normal(a,b) ((CGSizeEqualToSize(CGSizeMake(375, 812),[[UIScreen mainScreen] bounds].size))? a:b) |
| | | #define IPhone4_5_6_6P_X(a,b,c,d,e) (CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] bounds].size) ?(a) :(CGSizeEqualToSize(CGSizeMake(320, 568), [[UIScreen mainScreen] bounds].size) ? (b): (CGSizeEqualToSize(CGSizeMake(375, 667), [[UIScreen mainScreen] bounds].size) ?(c) : (CGSizeEqualToSize(CGSizeMake(414, 736), [[UIScreen mainScreen] bounds].size) ?(d) : (CGSizeEqualToSize(CGSizeMake(375, 812), [[UIScreen mainScreen] bounds].size) ?(e) :0))))) |
| | | |
| | | // iOS系统版本 |
| | | #define IOSBaseVersion11 11.0 |
| | |
| | | #define IOSBaseVersion7 7.0 |
| | | #define IOSBaseVersion6 6.0 |
| | | |
| | | #define TabbarHeight ([[UIApplication sharedApplication] statusBarFrame].size.height>20?83:49) // 适配iPhone x 底栏高度 |
| | | |
| | | // 过去当前APP版本号 |
| | | #define XcodeAppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] |
| | |
| | | #define FONT18 [UIFont systemFontOfSize:18.0] |
| | | |
| | | // 其他常量 |
| | | #define NavBar_Height ((SCREEN_HEIGHT == 812) ? 88.0 : 64.0) |
| | | #define NavBarHeight 44 |
| | | #define NavBarHeight7 64 |
| | | /*! Status bar height. */ |
| | |
| | | #define DEVICE_CONTROL_COMMAND_WATERTIME 9 // 控制每次水循环时长 |
| | | #define DEVICE_CONTROL_COMMAND_VENTILATIONTIME 10 // 控制每次换气时长 |
| | | |
| | | #define BLE_DEVICE_UUID @"0003CDD0-0000-1000-8000-00805F9B0131" |
| | | #define LISTON_DEVICE_UUID @"0003CDD1-0000-1000-8000-00805F9B0131" // 监听 |
| | | #define WRITE_DEVICE_UUID @"0003CDD2-0000-1000-8000-00805F9B0131" // 发消息 |
| | | |
| | | // < 0.25安全 |
| | | // >= 0.25 && < 0.8轻微 |
| | | // >= 0.8 && < 2中度 |
| | | // >= 2严重 |
| | | |
| | | #define FUSHE_MIN_VALUE 0 |
| | | #define FUSHE_SAFE_VALUE 250 // 安全 |
| | | #define FUSHE_SLIGHT_VALUE 800 // 轻微 |
| | | #define FUSHE_MODERATE_VALUE 2000 // 中度 |
| | | #define FUSHE_MAX_VALUE 4000 // 警告 |
| | | |