| | |
| | | #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. */ |