酷店

AppConfig.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // AppConfig.h
  3. // KuDianProject
  4. //
  5. // Created by 学丽 on 2019/7/4.
  6. // Copyright © 2019 KDP. All rights reserved.
  7. //
  8. #ifndef AppConfig_h
  9. #define AppConfig_h
  10. #define APPStroe_ID @"1472706685"
  11. #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APPStroe_ID]
  12. #define UMENG_KEY @"5cbebbdc4ca357298a000094"
  13. #define placholderImg @"placholderImg"
  14. #define SOURCE_ID @"7000"
  15. //验证码签名
  16. #define SignCode @"cNHWj7pqBSXTi2DS4uvxqMTzuXOk5xvL"
  17. #define UserPhone @"UserPhone"
  18. //当前版本号
  19. #define CURRENT_VERSION @"currentversion"
  20. //弱引用
  21. #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
  22. #define WeakSelf(weakSelf) __weak __typeof(self) weakSelf = self;
  23. //强引用
  24. #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
  25. #define FONT_SYS(X) [UIFont systemFontOfSize:X]
  26. #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
  27. #define equalTo(...) mas_equalTo(__VA_ARGS__)
  28. #ifdef DEBUG
  29. #define NSLog(...) NSLog(__VA_ARGS__)
  30. #else
  31. #define NSLog(...)
  32. #endif
  33. //定义屏幕的宽度
  34. #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  35. //定义屏幕的高度
  36. #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  37. #define KDNavBarHeight [KDPHeightTool getNavigationBarHeight]
  38. #define KDStatusHeight [KDPHeightTool getStatusBarHeight]
  39. #define KDTabBarHeight [KDPHeightTool gettabbarHeight]
  40. #define KDTabBottomHeight [KDPHeightTool getSafeBottom]
  41. #define iPhoneX (SCREEN_HEIGHT>736)
  42. #define ThemeColor @"#FF235F"
  43. #define LineColor @"#F9F9F9"
  44. #define fontColor @"#333333"
  45. #endif /* AppConfig_h */