| 12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // CSFilewDownUpCell.h
- // zhuxun
- //
- // Created by winsoft on 17/6/22.
- //
- //
- #import "BaseTableViewCell.h"
- #import "CSFileExtensionViewForCell.h"
- #import "CSFileDownUpFrameModel.h"
- #define CSFileDownUpCellIdentifier @"CSFileDownUpCellIdentifier"
- //统一路口.
- //打开扩展
- typedef void(^ExtensionSwitchBlock)(CSFileDownUpFrameModel *csFileDownUpFrameModel);
- //完成下载成功
- typedef void(^FileDownUpSuccessBlock)(CSFileDownUpFrameModel *csFileDownUpFrameModel);
- //暂停,恢复上传下载
- typedef void(^DownUpStatusBlock)(CSFileDownUpFrameModel *csFileDownUpFrameModel, DownUpStatus downUpStatus);
- @interface CSFileDownUpCell : BaseTableViewCell
- @property (nonatomic , strong) CSFileDownUpFrameModel *csFileDownUpFrameModel;
- @property (nonatomic , strong) ExtensionSwitchBlock extensionSwitchBlock;
- @property (nonatomic , strong) ExtensionOpBlock extensionOpBlock;
- @property (nonatomic , strong) DownUpStatusBlock downUpStatusBlock;
- @property (nonatomic , strong) FileDownUpSuccessBlock fileDownUpSuccessBlock;
- //根据status 选择CSFileCell 还是 ing cell
- + (CSFileDownUpCell *)fileDownUpCellWithCSFileDownUpFrameModel:(CSFileDownUpFrameModel*)csFileDownUpFrameModel tableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath identifier:(NSString *)identifier opItems:(NSArray *)opItems;
- @end
|