PrefixHeader.pch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // PrefixHeader.pch
  3. // JSJPCoach
  4. //
  5. // Created by apple on 2017/3/20.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #ifndef PrefixHeader_pch
  9. #define PrefixHeader_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. #import <Foundation/Foundation.h>
  13. #import <UIKit/UIKit.h>
  14. #import "AppDelegate.h"
  15. #import "UIFormatter.h"
  16. #import "DataAndEnum.h"
  17. #import "Util.h"
  18. #import "UserInfo.h"
  19. #import "jiaPeiManager.h"
  20. #import "LoadingView.h"
  21. #import "HolderView.h"
  22. #import "Tools.h"
  23. #import "UIView+Setter.h"
  24. #import "UIView+Frame.h"
  25. #import "UIImage+Setter.h"
  26. #import "NSString+ex.h"
  27. #import "MtArray+Setter.h"
  28. #import "UIImageView+WebCache.h"
  29. #ifdef DEBUG // 开发阶段-DEBUG阶段:使用Log
  30. #define NSLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
  31. #else // 发布阶段-上线阶段:移除Log
  32. #define NSLog(FORMAT, ...) nil
  33. #endif
  34. //客服
  35. #define kScreenWidth [[UIScreen mainScreen] bounds].size.width
  36. #define kMainCellColor [UIColor colorWithRed:248/255.0 green:248/255.0 blue:255/255.0 alpha:1]
  37. #define kInputViewHeight 50
  38. #define QM_IS_IPHONEX (([[UIScreen mainScreen] bounds].size.height-812)?NO:YES)
  39. #define kScreenHeight (QM_IS_IPHONEX ? ([[UIScreen mainScreen] bounds].size.height - 34) : ([[UIScreen mainScreen] bounds].size.height))
  40. #import "UIImage+GIF.h"
  41. #import "MLEmojiLabel.h"
  42. #import "QMDateManager.h"
  43. //______________
  44. /**一个全局的单例。
  45. 这个地方可以放入版本判断信息 如果版本太低 不能打开 并告诉用户最低支持的版本信息--danson
  46. */
  47. #define myDelegate ((AppDelegate* )[[UIApplication sharedApplication]delegate])
  48. #endif
  49. #ifdef __OBJC__
  50. #import <UIKit/UIKit.h>
  51. #import <Foundation/Foundation.h>
  52. #endif /* PrefixHeader_pch */