HKPTimeLine.pch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // HKPTimeLine 仿赤兔、微博动态.pch
  3. // HKPTimeLine 仿赤兔、微博动态
  4. //
  5. // Created by samuelandkevin on 16/9/19.
  6. // Copyright © 2016年 HKP. All rights reserved.
  7. //
  8. #ifndef HKPTimeLine_pch
  9. #define HKPTimeLine_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 <Masonry.h>
  13. //#import <SDWebImage/UIImageView+WebCache.h>
  14. #define RGB16(rgbValue)\
  15. \
  16. [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
  17. green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
  18. blue:((float)(rgbValue & 0xFF))/255.0 \
  19. alpha:1.0]
  20. #define RGB16(rgbValue)\
  21. \
  22. [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
  23. green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
  24. blue:((float)(rgbValue & 0xFF))/255.0 \
  25. alpha:1.0]
  26. //#define kGrayColor RGBCOLOR(196, 197, 198)
  27. //#define kGreenColor RGBCOLOR(0, 201, 144)
  28. //#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
  29. #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
  30. #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
  31. #define KEYWINDOW [UIApplication sharedApplication].keyWindow
  32. #define DDLog(FORMAT, ...) fprintf(stderr, "\n[%s] function:%s line:%d content:%s\n", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
  33. #define WeakSelf __weak __typeof(&*self)weakSelf = self;
  34. #define KRecordingEnd @"RecordingEnd"
  35. //发送通知
  36. #define KPostNotification(name,obj) [[NSNotificationCenter defaultCenter] postNotificationName:name object:obj];
  37. #endif /* HKPTimeLine_pch */