WMZBannerView.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // WMZBannerView.h
  3. // WMZBanner
  4. //
  5. // Created by wmz on 2019/9/6.
  6. // Copyright © 2019 wmz. All rights reserved.
  7. //
  8. #import "WMZBannerParam.h"
  9. #import <UIKit/UIKit.h>
  10. #import "WMZBannerControl.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface WMZBannerView : UIView
  13. //背景图
  14. @property(strong,nonatomic)UIImageView *bgImgView;
  15. @property(strong,nonatomic)WMZBannerControl *bannerControl ;
  16. /**
  17. * 调用方法
  18. *
  19. */
  20. - (instancetype)initConfigureWithModel:(WMZBannerParam *)param withView:(UIView*)parentView;
  21. /**
  22. * 调用方法
  23. *
  24. */
  25. - (instancetype)initConfigureWithModel:(WMZBannerParam *)param;
  26. /**
  27. * 更新UI
  28. *
  29. */
  30. - (void)updateUI;
  31. - (void)resetParam:(WMZBannerParam *)param;
  32. /**
  33. * 手动调用滚动
  34. *
  35. */
  36. - (void)scrolToPath:(NSIndexPath*)path animated:(BOOL)animated;
  37. @end
  38. @interface Collectioncell : UICollectionViewCell
  39. @property(nonatomic,strong)UIImageView *icon;
  40. @property(nonatomic,strong)WMZBannerParam *param;
  41. @end
  42. @interface CollectionTextCell : UICollectionViewCell
  43. @property(nonatomic,strong)UILabel *label;
  44. @property(nonatomic,strong)WMZBannerParam *param;
  45. @end
  46. NS_ASSUME_NONNULL_END