Nessuna descrizione

LFWHeader.h 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //
  2. // LFWHeader.h
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/16.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #ifndef YHHeader_h
  9. #define YHHeader_h
  10. /**App ID*/
  11. #define APP_ID @"1437708691"
  12. /***/
  13. //阿里百川
  14. #define ALBC_APP_KEY @"25096208"//--
  15. //淘客pid
  16. #define ALTK_PID @"mm_99506173_0_0"
  17. //友盟key
  18. #define UMAPP_KEY @"5baf2e78b465f55af10000e8"//--
  19. //bugly id
  20. #define BUGLY_ID @"3e983c72fb"
  21. //channel_id
  22. #define Channel_id @"5121"
  23. //UserDafault Key
  24. #define UserSexKey @"userSex"
  25. #define BrowserHistoryKey @"browserHistory"
  26. //定义屏幕的宽度
  27. #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  28. //定义屏幕的高度
  29. #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  30. #define iPhone5 (SCREEN_WIDTH==320)?YES:NO
  31. //#define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
  32. #define iPhoneX (SCREEN_HEIGHT>736)
  33. #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
  34. #define KStatusBarHeight (iPhoneX ? 44.f : 20.f)
  35. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  36. #define NavBarHeight (iPhoneX ? 88.f : 64.f)
  37. #define SafeBottomHeight (iPhoneX ? 34.f : 0)
  38. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  39. #define ChildTableViewHeight SCREEN_HEIGHT-TabbarHeight-NavBarHeight-40
  40. #define BottomMargin (iPhoneX ? 25.f : 0.f)
  41. //弱引用
  42. #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
  43. //强引用
  44. #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
  45. #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
  46. #define FITSIZE(X) (SCREEN_WIDTH/375.0)*X
  47. #define Placehold_Img [UIImage imageNamed:@"placeHolder"]
  48. #ifdef DEBUG
  49. #define NSLog(...) NSLog(__VA_ARGS__)
  50. #else
  51. #define NSLog(...)
  52. #endif
  53. #define JZHomeUPdateApp @"updateApp"
  54. #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APP_ID]
  55. //============友盟事件统计宏==============//
  56. #define home_banner @"home_banner"
  57. #define search_count @"search_count"
  58. #define nine_classify_goods @"nine_classify_goods"
  59. #define nine_classify @"nine_classify"
  60. #define nine_better @"nine_better"
  61. #define nine_top_pic @"nine_top_pic"
  62. #define category_goods @"category_goods"
  63. #define top_classify @"top_classify"
  64. #define home_hot @"home_hot"
  65. #define home_recommend @"home_recommend"
  66. #define pay_count @"pay"
  67. #define collection_count @"collection"
  68. #define Home_Items @"home_items"
  69. #define Find_channel @"find_channel"
  70. #define Find_youLike @"find_youLike"
  71. #define Search_History_String @"点击搜索历史"
  72. #define Search_Hot_String @"点击热搜搜索"
  73. #define Search_Normal @"用户输入搜索"
  74. #endif /* YHHeader_h */