1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // RQDspVideoDetailCell.m
- // SDJK
- //
- // Created by RONGQING on 2022/1/20.
- //
- #import "RQDspVideoDetailCell.h"
- @interface RQDspVideoDetailCell ()
- @property (nonatomic, readwrite, strong) RQDspVideoDetailItemViewModel *viewModel;
- @property (weak, nonatomic) IBOutlet UIImageView *coverImageView;
- @end
- @implementation RQDspVideoDetailCell
- #pragma mark - PublicMethods
- + (instancetype)cellWithTableView:(UITableView *)tableView {
- static NSString *ID = @"RQDspVideoDetailCell";
- RQDspVideoDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
- if (!cell) {
- cell = [self rq_viewFromXib];
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- cell.coverImageView.userInteractionEnabled = YES;
- cell.coverImageView.tag = 10086;
- }
- return cell;
- }
- - (void)bindViewModel:(RQDspVideoDetailItemViewModel *)viewModel {
- _viewModel = viewModel;
- [_coverImageView yy_setImageWithURL:[NSURL URLWithString:viewModel.videosItem.coverFileUrl] placeholder:RQWebVideoImagePlaceholder() options:RQWebImageOptionAutomatic completion:nil];
-
- }
- #pragma mark - SystemMethods
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|