JLSubCollectionView.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // JLSubCollectionView.h
  3. // OnlyViewControllerLink
  4. //
  5. // Created by JayLuo on 2020/4/25.
  6. // Copyright © 2020 朱伟阁. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "JLSelectModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @class JLSubCollectionView;
  12. @protocol JLSubCollectionDelegate <NSObject>
  13. - (void)subCollection:(JLSubCollectionView *)subCollectionView didSelectedItemindexPath:(NSIndexPath *)indexPath model:(JLSelectModel *)model;
  14. @end
  15. @interface JLSubCollectionView : UIView{
  16. NSString *_contentType;
  17. JLSubCollectionView *_self;
  18. }
  19. @property(nonatomic, assign) int nineAndTenStr;
  20. @property(nonatomic, strong) JLSelectModel *model;
  21. @property(nonatomic, strong) UICollectionView *cv;
  22. @property(nonatomic, strong) NSMutableArray *dataSource;
  23. @property(assign,nonatomic)int currentPageIndex;
  24. @property(nonatomic, weak) id <JLSubCollectionDelegate>delegate;
  25. - (instancetype)initWithFrame:(CGRect)frame contentType:(NSString*)contentType selfVc:(JLSubCollectionView *)selfVc;
  26. @end
  27. NS_ASSUME_NONNULL_END