123456789101112131415161718192021222324252627282930 |
- //
- // HomeBigshotCollectCell.m
- // smartRhino
- //
- // Created by niuzhen on 2020/5/20.
- // Copyright © 2020 tederen. All rights reserved.
- //
- #import "HomeBigshotCollectCell.h"
- @implementation HomeBigshotCollectCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- self.imagV.layer.cornerRadius = 2.5f;
- self.imagV.layer.masksToBounds = YES;
- }
- - (void)setDataModel:(HomeSubItemModel *)model
- {
- [self.imagV sd_setImageWithURL:[NSURL URLWithString:model.ImageUrls] placeholderImage:IMG(@"img_placeHolder")];
- self.titleL.text = model.Title;
- self.timeL.text = model.Duration;
- self.subTitleL.text = model.Author;
- if (model.Author.length == 0) {
- self.yanContant.constant = 0.f;
- }
- self.countL.text = [NSString stringWithFormat:@"%ld",model.ReadCount];
- }
- @end
|