Нет описания

KXHeader.h 3.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. //
  2. // KXHeader.h
  3. // QBCS
  4. //
  5. // Created by kuxuan on 2017/6/6.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #ifndef KXHeader_h
  9. #define KXHeader_h
  10. //定义屏幕的宽度
  11. #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  12. //定义屏幕的高度
  13. #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  14. #define IOS7_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
  15. #define IOS11_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0)
  16. #define StatusBarHeight [KXGetHeightTool getStatusBarHeight]
  17. #define NavHeight [KXGetHeightTool getNavigationBarHeight]
  18. #define safeBottomHeight [KXGetHeightTool getSafeBottom]
  19. #define TabbarHeight [KXGetHeightTool gettabbarHeight]
  20. #define VIEW_HEIGHT SCREEN_HEIGHT-safeBottomHeight
  21. #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
  22. #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
  23. /*******做***包***修改***这里***就***行***了******************/
  24. //还需要改plist中小米push的两个值
  25. #define UMAPP_KEY @"5b06579ea40fa37cae000213"
  26. #define KXCOMPANY @"这个公司"
  27. #define KXCOMPANY_SERVICE @"公司客服"
  28. #define KXCOMPANY_ENGLISH @"这个公司english"
  29. #define KXCHANNEL_ID @"20129"
  30. #define KXAPPSTORE_ADDRESS [NSString stringWithFormat:@"itms-apps://itunes.apple.com/cn/app//id%@?mt=8",@"1271312320"]
  31. #define KXSUPORTURL @"网址信息:http://sdjd.726p.com/"
  32. // 1 代表过审 0线上
  33. #define KXAPPSTATUS 1
  34. /****************************************************************/
  35. #define LAST_RUN_VERSION_KEY @"last_run_version"
  36. #define MAX_ID @"max_id"
  37. #define LEADING_SPACE 14
  38. #define USER_NAME @"user_name"
  39. #define USER_PASSWORD @"user_password"
  40. #define USER_TOKEN @"user_token"
  41. #define ONLINE @"online"
  42. #define KXNETREACHABLE @"reachable"
  43. #define KXNETUNREACHABLE @"unreachable"
  44. #define KXNETHASCHANGED @"getnetwork"
  45. #define KXADVERTISEMENTKEY @"KXADVERTISEMENTKEY"
  46. #define KXADVERTISEMENTID_OLD @"KXASVERTISEMENTID_OLD" //旧的广告
  47. #define KXADVERTISEMENTID_NEW @"KXADVERTISEMENTID_NEW" //新的广告
  48. #define KXFIRSTLAUNNCH @"KXFIRSTLAUNNCH" //第一次登录
  49. #define KXREGISTER_SECRET @"Y08D2SQPWJF5X1TC7EZ6MILH4GVBUAKRN93O"
  50. #define KXADALERTKEY @"KXADALERTKEY" //弹框广告
  51. #define KXMARK_TODAY @"KXMARK_TODAY" //评分是否是今天
  52. #define KXMARK_CLICKCOUNT @"KXMARK_CLICKCOUNT" // 3.0的弹出次数
  53. #define KXMARK_TOAPPSTORE @"KXMARK_TOAPPSTORE" // 3.0判断是点击了关闭还是去苹果商店,然后在不同的时间之后给弹框
  54. #define FONT_SYS(x) [UIFont systemFontOfSize:x]
  55. #define FONT_BOLD(x) [UIFont boldSystemFontOfSize:x]
  56. #define equalTo(...) mas_equalTo(__VA_ARGS__)
  57. #define WS(weakSelf) __unsafe_unretained __typeof(&*self)weakSelf = self;
  58. #define kRegularFontName @"PingFangSC-Regular"
  59. #define kMediumFontName @"PingFangSC-Medium"
  60. #define kSemiboldFontName @"PingFangSC-Semibold"
  61. #define FootprintArray [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"FootprintArray.plist"]
  62. /*************************过审页面用到*******************/
  63. static NSString *const kOrderArray = @"kOrderArray";
  64. #endif /* KXHeader_h */