123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //
- // WclAppConfig.h
- // smartRhino
- //
- // Created by armin on 2019/11/2.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #ifndef WclAppConfig_h
- #define WclAppConfig_h
- //wcl add
- #define kNavigationHeight (44+kStatusBarHeight)
- #define kiphoneXBootomHeight (kBooliPhoneX==YES?34:0)
- #define kBooliPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ((NSInteger)(([[UIScreen mainScreen] currentMode].size.height/[[UIScreen mainScreen] currentMode].size.width)*100) == 216) : NO)
- #define kTabBarHeight (kBooliPhoneX==YES?83:49)
- #define kStatusBarHeight (kBooliPhoneX==YES?44:20)
- #define SafeAreaBottomHeight ((kScreenHeight >= 812.0) && [[UIDevice currentDevice].model isEqualToString:@"iPhone"] ? 30 : 0)
- #define SafeBottom (([[UIScreen mainScreen] bounds].size.height<812) ? 0 : 43)
- #define RGB(R,G,B) [UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:1.0f]
- #define RGBA(R,G,B,A) [UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:A]
- #define kColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
- #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
- #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
- #define Kfont(size) [UIFont systemFontOfSize:size]
- #define kColorFromRGBAlpha(rgbValue,al) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:al]
- #define IOS11_OR_LATER ([[UIDevice currentDevice].systemVersion floatValue] >= 11.0f)
- #define IOS10_OR_LATER ([[UIDevice currentDevice].systemVersion floatValue] >= 10.0f)
- #define IOS9_OR_LATER ([[UIDevice currentDevice].systemVersion floatValue] >= 9.0f)
- #define IOS8_OR_LATER ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0f)
- #define IOS7_OR_LATER ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0f)
- #define IOS6_OR_LATER ([[UIDevice currentDevice].systemVersion floatValue] >= 6.0f)
- #define IOS5_OR_LATER ([[UIDevice currentDevice].systemVersion floatValue] >= 5.0f)
- #endif /* WclAppConfig_h */
|