You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
4 years ago
|
//
|
||
|
// TFComicDownloadManagerCell.h
|
||
|
// TFReader
|
||
|
//
|
||
|
// Created by 谢腾飞 on 2020/12/16.
|
||
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
typedef void(^CellSelectBlock)(TFProductionModel *comicModel, NSString *comic_name);
|
||
|
|
||
|
typedef void(^ImageViewSelectBlock)(NSInteger comic_id);
|
||
|
|
||
|
typedef void(^ButtonSelectBlock)(TFProductionModel *comicModel);
|
||
|
|
||
|
@interface TFComicDownloadManagerCell : TFBasicTableViewCell
|
||
|
|
||
|
@property (nonatomic, strong) TFProductionModel *comicModel;
|
||
|
|
||
|
@property (nonatomic, copy) CellSelectBlock cellSelectBlock;
|
||
|
|
||
|
@property (nonatomic, copy) ImageViewSelectBlock imageViewSelectBlock;
|
||
|
|
||
|
@property (nonatomic, copy) ButtonSelectBlock buttonSelectBlock;
|
||
|
|
||
|
@property (nonatomic, assign, readonly) BOOL isEditting;
|
||
|
|
||
|
@property (nonatomic, assign, readonly) BOOL isSelected;
|
||
|
|
||
|
/// 选择编辑单元
|
||
|
@property (nonatomic, copy) void(^selecteEdittingCellBlock)(TFProductionModel *productionModel, BOOL isSelected);
|
||
|
|
||
|
- (void)setEditing:(BOOL)editing;
|
||
|
|
||
|
// 强行设置编辑状态
|
||
|
- (void)set_Editting:(BOOL)editting;
|
||
|
|
||
|
// 切换选中状态
|
||
|
- (void)switchSelectedState:(BOOL)state;
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|