BogoGameListHeadCell.m 949 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // BogoGameListHeadCell.m
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2021/5/6.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import "BogoGameListHeadCell.h"
  9. @implementation BogoGameListHeadCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. self.topicTitleBtn.layer.cornerRadius = kRealValue(20 / 2);
  14. self.topicTitleBtn.layer.masksToBounds = NO;
  15. self.topicTitleBtn.titleLabel.lineBreakMode = NSLineBreakByTruncatingTail;
  16. self.imgView.layer.cornerRadius = 4;
  17. self.imgView.layer.masksToBounds = YES;
  18. self.backgroundColor = kClearColor;
  19. self.topicTitleBtn.titleLabel.numberOfLines = 0;
  20. }
  21. - (void)resetControlModel:(GameBottomListModel *)model{
  22. [self.topicTitleBtn setTitle:[NSString stringWithFormat:@"%@",model.name] forState:UIControlStateNormal];
  23. [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:nil];
  24. }
  25. @end