STTablePhotoCell.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // STTablePhotoCell.h
  3. // BuguLive
  4. //
  5. // Created by 岳克奎 on 17/4/18.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "STTableBaseCell.h"
  10. #import "STCollectionPhotoFlowLayout.h"
  11. @class STTablePhotoCell;
  12. #pragma mark - Transition Type
  13. typedef NS_ENUM(NSUInteger, STTablePhotoCellType) {
  14. STTablePhotoDefault = 0, // 默认格式 就是一个+ 而已
  15. STTablePhotoDelete = 1, // 有个cell有一个+图标 其余右上角有删除标志
  16. STTablePhotoUnSelected = 2, //
  17. STTablePhotoSelectCover = 3, // 选择封面
  18. STTablePhotoShow = 4, // 正常显示数据源里照片
  19. };
  20. @protocol STTablePhotoCellDelegate <NSObject>
  21. @optional
  22. -(void)showSTTablePhotoCell:(STTablePhotoCell *)stTablePhotoCell;
  23. -(void)showSTTablePhotoCell:(STTablePhotoCell *)stTablePhotoCell andDidSelectItemAtIndexPath:(NSIndexPath *)indexPath;
  24. @end
  25. @interface STTablePhotoCell : STTableBaseCell <UICollectionViewDataSource,UICollectionViewDelegate>
  26. @property (weak, nonatomic ) IBOutlet UICollectionView *collectionView;
  27. @property (nonatomic,strong) NSMutableArray *dataSoureMArray;
  28. @property (nonatomic,strong) STCollectionPhotoFlowLayout *layout;
  29. @property (nonatomic,weak ) id<STTablePhotoCellDelegate>delegate;
  30. @property (nonatomic,assign) STTablePhotoCellType stTablePhotoCellType;
  31. @property (weak, nonatomic) IBOutlet UIView *separatorView;
  32. @property(nonatomic,strong)NSMutableArray *selectedMArray;
  33. @property(nonatomic,assign)NSInteger recordIndexRow;
  34. @end