ModelPrefix.pch 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // ModelPrefix.pch
  3. // model
  4. //
  5. // Created by zuxiukuan on 2018/7/15.
  6. // Copyright © 2018年 Mine. All rights reserved.
  7. //
  8. #ifndef ModelPrefix_pch
  9. #define ModelPrefix_pch
  10. // Include any system framework and library headers here that should be included in all compilation units.
  11. // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
  12. #ifdef __OBJC__
  13. #import <UIKit/UIKit.h>
  14. #import <Foundation/Foundation.h>
  15. #import "ModelNavigationController.h"
  16. #import <AFNetworking.h>
  17. #import <MBProgressHUD.h>
  18. #import <MJExtension.h>
  19. #import <MJRefresh.h>
  20. #import <UIImageView+WebCache.h>
  21. //
  22. #import <NIMSDK/NIMSDK.h>
  23. #import <NIMAVChat/NIMAVChat.h>
  24. #import "NIMKit.h"
  25. #import "NIMKitInfoFetchOption.h"
  26. #import <Toast/UIView+Toast.h>
  27. #import "ModelBaseViewController.h"
  28. #import "NTESGlobalMacro.h"
  29. #import "Reachability.h"
  30. #import "Masonry.h"
  31. #import "NSString+method.h"
  32. #import "PrivateModel.h"
  33. #import "ActivityModel.h"
  34. #import "YanCNetWorkManager.h"
  35. #import "MBProgressHUD+YanC.h"
  36. #import "ModelUser.h"
  37. #import "MD5String.h"
  38. #import "Helper.h"
  39. #import "UIColor+Hex.h"
  40. #import "JSONModel.h"
  41. #import "ActorModel.h"
  42. #import "UILabel+LabelHeightAndWidth.h"
  43. #import "UIScreen+Sports.h"
  44. #import "UIButton+EnlargeEdge.h"
  45. #import "AHHttpManager.h"
  46. #import "MBProgressHUD+Extension.h"
  47. //
  48. #import "ModelHeader.h"
  49. #define ScreenWidth [UIScreen mainScreen].bounds.size.width
  50. #define ScreenHeight [UIScreen mainScreen].bounds.size.height
  51. #define ScreenSize [UIScreen mainScreen].bounds.size
  52. //计算颜色
  53. #define RGB(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]
  54. #define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
  55. #define RGBValueColor(rgbValue,a) [UIColor colorWithRed:((float)(((rgbValue) & 0xFF0000) >> 16))/255.0 green:((float)(((rgbValue) & 0xFF00)>>8))/255.0 blue: ((float)((rgbValue) & 0xFF))/255.0 alpha:(a)]
  56. // 随机色
  57. #define RenderColor [UIColor colorWithRed:arc4random_uniform(255) / 255.0 green:arc4random_uniform(255) / 255.0 blue:arc4random_uniform(255) / 255.0 alpha:1.0]
  58. //  适配
  59. #define AutoSizeSalseX ScreenWidth / 375.0
  60. #define AutoSizeSalseY ScreenHeight / 667.0
  61. #define HeightStatusBar [[UIApplication sharedApplication] statusBarFrame].size.height
  62. #define HeightNavigationBar self.navigationController.navigationBar.frame.size.height
  63. #define Height_StatusBar (HeightStatusBar == 44.0f) ? 44.0f : 20.0f
  64. #define Height_NaviBar (HeightStatusBar == 44.0f) ? 88.0f : 64.0f
  65. #define Height_TabBar (HeightStatusBar == 44.0f) ? 83.0f : 49.0f
  66. #define Height_TabBar_Safe (HeightStatusBar == 44.0f) ? 34.0f : 0.0f
  67. #define ScreenResultHeight [[UIScreen mainScreen] bounds].size.height-(Height_NaviBar)
  68. #define iOS7Later ([UIDevice currentDevice].systemVersion.floatValue >= 7.0f)
  69. #define iOS8Later ([UIDevice currentDevice].systemVersion.floatValue >= 8.0f)
  70. #define iOS9Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.0f)
  71. #define iOS9_1Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.1f)
  72. #endif
  73. #endif /* ModelPrefix_pch */