PrefixHeader.pch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // PrefixHeader.pch
  3. // LN_School
  4. //
  5. // Created by apple on 2017/4/5.
  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. //客服
  15. #define kScreenWidth [[UIScreen mainScreen] bounds].size.width
  16. #define kMainCellColor [UIColor colorWithRed:248/255.0 green:248/255.0 blue:255/255.0 alpha:1]
  17. #define kInputViewHeight 50
  18. #define QM_IS_IPHONEX (([[UIScreen mainScreen] bounds].size.height-812)?NO:YES)
  19. #define kScreenHeight (QM_IS_IPHONEX ? ([[UIScreen mainScreen] bounds].size.height - 34) : ([[UIScreen mainScreen] bounds].size.height))
  20. #import "UIImage+GIF.h"
  21. #import "MLEmojiLabel.h"
  22. #import "QMDateManager.h"
  23. //______________
  24. #import "Util.h"
  25. #import "AppDelegate.h"
  26. #import "DataAndEnum.h"
  27. #import "UI_Formatter&Function.h"
  28. #import "UserInfo.h"
  29. #import "Tools.h"
  30. #import "HolderView.h"
  31. #import "NetManager.h"
  32. #import <QMUIKit/QMUIKit.h>
  33. #import <MJRefresh.h>
  34. #import <UIImageView+WebCache.h>
  35. #import "RQCategory.h"
  36. #define myDelegate ((AppDelegate* )[[UIApplication sharedApplication]delegate])
  37. #ifdef DEBUG // 开发阶段-DEBUG阶段:使用Log
  38. #define NSLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
  39. #else // 发布阶段-上线阶段:移除Log
  40. #define NSLog(FORMAT, ...) nil
  41. #endif
  42. #endif /* PrefixHeader_pch */