HomeBigshotCollectCell.m 797 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // HomeBigshotCollectCell.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2020/5/20.
  6. // Copyright © 2020 tederen. All rights reserved.
  7. //
  8. #import "HomeBigshotCollectCell.h"
  9. @implementation HomeBigshotCollectCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. self.imagV.layer.cornerRadius = 2.5f;
  13. self.imagV.layer.masksToBounds = YES;
  14. }
  15. - (void)setDataModel:(HomeSubItemModel *)model
  16. {
  17. [self.imagV sd_setImageWithURL:[NSURL URLWithString:model.ImageUrls] placeholderImage:IMG(@"img_placeHolder")];
  18. self.titleL.text = model.Title;
  19. self.timeL.text = model.Duration;
  20. self.subTitleL.text = model.Author;
  21. if (model.Author.length == 0) {
  22. self.yanContant.constant = 0.f;
  23. }
  24. self.countL.text = [NSString stringWithFormat:@"%ld",model.ReadCount];
  25. }
  26. @end