1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- //
- // AppConfig.h
- // KuDianProject
- //
- // Created by 学丽 on 2019/7/4.
- // Copyright © 2019 KDP. All rights reserved.
- //
- #ifndef AppConfig_h
- #define AppConfig_h
- #define APPStroe_ID @"1472706685"
- #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APPStroe_ID]
- #define UMENG_KEY @"5cbebbdc4ca357298a000094"
- #define placholderImg @"placholderImg"
- #define SOURCE_ID @"7000"
- //验证码签名
- #define SignCode @"cNHWj7pqBSXTi2DS4uvxqMTzuXOk5xvL"
- #define UserPhone @"UserPhone"
- //当前版本号
- #define CURRENT_VERSION @"currentversion"
- //弱引用
- #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
- #define WeakSelf(weakSelf) __weak __typeof(self) weakSelf = self;
- //强引用
- #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
- #define FONT_SYS(X) [UIFont systemFontOfSize:X]
- #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
- #define equalTo(...) mas_equalTo(__VA_ARGS__)
- #ifdef DEBUG
- #define NSLog(...) NSLog(__VA_ARGS__)
- #else
- #define NSLog(...)
- #endif
- //定义屏幕的宽度
- #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
- //定义屏幕的高度
- #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
- #define KDNavBarHeight [KDPHeightTool getNavigationBarHeight]
- #define KDStatusHeight [KDPHeightTool getStatusBarHeight]
- #define KDTabBarHeight [KDPHeightTool gettabbarHeight]
- #define KDTabBottomHeight [KDPHeightTool getSafeBottom]
- #define iPhoneX (SCREEN_HEIGHT>736)
- #define ThemeColor @"#FF235F"
- #define LineColor @"#F9F9F9"
- #define fontColor @"#333333"
- #endif /* AppConfig_h */
|