EBBannerView+Categories.h 857 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // EBBannerView+Categories.h
  3. // demo
  4. //
  5. // Created by pikacode@qq.com on 2017/10/20.
  6. // Copyright © 2017年 pikacode@qq.com. All rights reserved.
  7. //
  8. #import "EBBannerView.h"
  9. #define WEAK_SELF(weakSelf) __weak __typeof(&*self)weakSelf = self;
  10. #define ScreenWidth [UIScreen mainScreen].bounds.size.width
  11. #define ScreenHeight [UIScreen mainScreen].bounds.size.height
  12. @interface EBBannerView (EBCategory)
  13. +(UIImage*)defaultIcon;
  14. +(NSString*)defaultTitle;
  15. +(NSString*)defaultDate;
  16. +(NSTimeInterval)defaultAnimationTime;
  17. +(NSTimeInterval)defaultStayTime;
  18. +(UInt32)defaultSoundID;
  19. @end
  20. @interface NSTimer (EBCategory)
  21. + (NSTimer *)eb_scheduledTimerWithTimeInterval:(NSTimeInterval)interval block:(void (^)(NSTimer *timer))block repeats:(BOOL)repeats;
  22. @end
  23. @interface UIImage (EBBannerViewCategory)
  24. +(UIColor *)colorAtPoint:(CGPoint)point;
  25. @end