悟空记账

JZHeader.h 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // JZHeader.h
  3. // JIZHANG
  4. //
  5. // Created by kuxuan on 2017/10/19.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #ifndef JZHeader_h
  9. #define JZHeader_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 IOS8_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
  15. #define IOS11_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0)
  16. #define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
  17. #define StatusBarHeight (iPhoneX ? 44.f : 20.f)
  18. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  19. #define NavHeight (iPhoneX ? 88.f : 64.f)
  20. #define safeBottomHeight (iPhoneX ? 34.f : 0)
  21. #define VIEW_HEIGHT SCREEN_HEIGHT-safeBottomHeight
  22. /*上新包需要改的东西*************************************/
  23. //记得要去JZUMShareManager.h 中改声明
  24. //渠道号
  25. #define JZCHANNEL_ID @"2003"
  26. //苹果商店id
  27. #define JZAPPSTORE_ID @"1318048929"
  28. //友盟id
  29. #define UMAPP_KEY @"5a14e6b9f29d9819e60000a4"
  30. /********************************************************/
  31. #define JZTOKEN @"JZUSER_TOKEN" //用户登录token
  32. #define JZNEWTOKEN @"JZNEWTOKEN" //绑定用户用的token
  33. #define JZPHONE @"JZUSER_PHONE" //用户手机号
  34. #define JZUSERNAME @"JZUSER_NAME" //用户昵称
  35. #define JZGENDER @"JZUSER_GENDER" //用户性别
  36. #define JZLoginMode @"JZLoginMode"
  37. #define JZWeixinNickName @"JZWeixinNickName"
  38. #define JZWeixinSex @"JZWeixinSex"
  39. #define JZWeixinImage @"JZWeixinImage"
  40. #define JZiosSahreUrl @"JZiosSahreUrl"
  41. #define JZtuxiangData @"JZtuxiangData"
  42. #define JZTokenInvalid @"JZTokenInvalid"
  43. #define JZMarkTime @"JZMarkTime"
  44. #define JZMarkTitle @"JZMarkTitle"
  45. #define JZHomeUPdateApp @"JZHomeUPdateApp"
  46. static NSString *const JZREMOVECOMUPGRADEVIEW = @"removeComUpgradeview";
  47. static NSString *const JZOPENTOUCHID = @"JZOpenTouchID";
  48. static NSString *const JZNEEDTOUCHID = @"JZNeedTouchID";
  49. static NSString *const JZWxBangPhone = @"JZWxBangPhone";
  50. static NSString *const JZFirstLogin = @"JZFirstLogin";
  51. static NSString *const JZHomeNotice = @"JZHomeNotice";
  52. static NSString *const JZHomeCheckAppFlow = @"JZHomeCheckAppFlow";
  53. static NSString *const JZNEWUSER_160 = @"JZNEWUSER_160";
  54. static NSString *const JZNEWREMARK_TIME = @"JZNEWREMARK_TIME";
  55. static NSString *const JZFIRSTNOTE = @"JZFIRSTNOTE"; //首次记账通知
  56. #define JZAPPSTORE_ADDRESS [NSString stringWithFormat:@"itms-apps://itunes.apple.com/cn/app//id%@?mt=8",JZAPPSTORE_ID]
  57. #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
  58. #define Leading_space 14 //基本间距
  59. #define FitSize(x) (SCREEN_WIDTH/375.0)*x
  60. #define FONT_SYS(x) [UIFont systemFontOfSize:x]
  61. #define FONT_BOLD(x) [UIFont boldSystemFontOfSize:x]
  62. #define equalTo(...) mas_equalTo(__VA_ARGS__)
  63. #define WS(weakSelf) __unsafe_unretained __typeof(&*self)weakSelf = self;
  64. static NSString *const JZGESTURE_HASSET = @"JZGESTURE_HASSET";
  65. static NSString *const JZBUDGET_HASSET = @"JZBUDGET_HASSET";
  66. static NSString *const JZBUDGET_POINT = @"JZBUDGET_POINT";
  67. static NSString *const JZCLOSE_BUDGET = @"JZCLOSE_BUDGET";
  68. static NSString *const JZOUTPUTEMAIL = @"JZOUTPUTEMAIL";
  69. #endif /* JZHeader_h */