WMZBannerView.h 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. NS_ASSUME_NONNULL_BEGIN
  10. @interface WMZBannerView : UIView
  11. //背景图
  12. @property(strong,nonatomic)UIImageView *bgImgView;
  13. /**
  14. * 调用方法
  15. *
  16. */
  17. - (instancetype)initConfigureWithModel:(WMZBannerParam *)param withView:(UIView*)parentView;
  18. /**
  19. * 调用方法
  20. *
  21. */
  22. - (instancetype)initConfigureWithModel:(WMZBannerParam *)param;
  23. /**
  24. * 更新UI
  25. *
  26. */
  27. - (void)updateUI;
  28. /**
  29. * 手动调用滚动
  30. *
  31. */
  32. - (void)scrolToPath:(NSIndexPath*)path animated:(BOOL)animated;
  33. @end
  34. @interface Collectioncell : UICollectionViewCell
  35. @property(nonatomic,strong)UIImageView *icon;
  36. @property(nonatomic,strong)WMZBannerParam *param;
  37. @end
  38. @interface CollectionTextCell : UICollectionViewCell
  39. @property(nonatomic,strong)UILabel *label;
  40. @property(nonatomic,strong)WMZBannerParam *param;
  41. @end
  42. NS_ASSUME_NONNULL_END