ContentViewCell.h 1.2 KB

123456789101112131415161718192021222324252627
  1. //
  2. // ContentViewCell.h
  3. // SheetViewDemo
  4. //
  5. // Created by Mengmin Duan on 2017/7/20.
  6. // Copyright © 2017年 Mengmin Duan. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NSString *(^cellForItemAtIndexPathBlock)(NSIndexPath *indexPath);
  10. typedef NSInteger(^numberOfItemsInSectionBlock)(NSInteger section);
  11. typedef CGSize(^sizeForItemAtIndexPathBlock)(UICollectionViewLayout * collectionViewLayout, NSIndexPath *indexPath);
  12. typedef void(^ContentViewCellDidScrollBlock)(UIScrollView *scroll);
  13. typedef BOOL(^cellWithColorAtIndexPathBlock)(NSIndexPath *indexPath);
  14. typedef void(^didSelectItemBlock)(NSIndexPath *indexPath);
  15. @interface ContentViewCell : UITableViewCell
  16. @property (nonatomic, strong) cellForItemAtIndexPathBlock cellForItemBlock;
  17. @property (nonatomic, strong) numberOfItemsInSectionBlock numberOfItemsBlock;
  18. @property (nonatomic, strong) sizeForItemAtIndexPathBlock sizeForItemBlock;
  19. @property (nonatomic, strong) ContentViewCellDidScrollBlock contentViewCellDidScrollBlock;
  20. @property (nonatomic, strong) cellWithColorAtIndexPathBlock cellWithColorBlock;
  21. @property (nonatomic, strong) didSelectItemBlock cellDidSelectBlock;
  22. @property (nonatomic, strong) UICollectionView *cellCollectionView;
  23. @end