PlayBackCell.m 772 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // PlayBackCell.m
  3. // BuguLive
  4. //
  5. // Created by 范东 on 2019/1/14.
  6. // Copyright © 2019 xfg. All rights reserved.
  7. //
  8. #import "PlayBackCell.h"
  9. #import "HMHotItemModel.h"
  10. @implementation PlayBackCell
  11. - (void)awakeFromNib {
  12. [super awakeFromNib];
  13. // Initialization code
  14. }
  15. - (void)setModel:(HMHotItemModel *)model{
  16. self.layer.cornerRadius = 10;
  17. self.clipsToBounds = YES;
  18. self.watchCountLabel.text = model.watch_number_format;
  19. [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.head_image] placeholderImage:kDefaultPreloadHeadImg];
  20. self.nameLabel.text = model.nick_name;
  21. self.contentLabel.text = model.title;
  22. self.timeLabel.text = [NSString stringWithFormat:ASLocalizedString(@"%@之前"),model.playback_time];
  23. }
  24. @end