AddPictureCell.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // AddPictureCell.h
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/11/26.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "TDTableViewCell.h"
  9. #import "FlowAttachmentsModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @protocol AddPictureCellDelegate <NSObject>
  12. - (void)addPictureWith:(NSIndexPath *)index WithSuccess:(nullable void (^)( id _Nullable responseObject)) success failure:(nullable void (^)(NSError *error))failure;
  13. - (void)deletePictureWithCell:(NSIndexPath *)index SuperViewCellIndexPath:(NSIndexPath *)superIndex WithSuccess:(nullable void (^)( id _Nullable responseObject)) success failure:(nullable void (^)(NSError *error))failure;
  14. @end
  15. @interface AddPictureCell : TDTableViewCell
  16. @property (weak, nonatomic) IBOutlet UILabel *namelab;
  17. @property (weak, nonatomic) IBOutlet UIImageView *haveNeedImageView;
  18. @property (weak, nonatomic) IBOutlet UICollectionView *mycollectionView;
  19. @property (nonatomic, strong) NSMutableArray <FlowAttachmentsModel *>*approvalSection;
  20. @property (nonatomic,weak) id<AddPictureCellDelegate>delegate;
  21. @property (nonatomic, strong) NSIndexPath *index;
  22. @property (strong, nonatomic, nullable) NSString *placeholderImg;
  23. @property (nonatomic, copy) void(^ClickCellBlock)(NSInteger index);
  24. @end
  25. NS_ASSUME_NONNULL_END