GiftCell.m 555 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // YBGiftCell.m
  3. // iphoneLive
  4. //
  5. // Created by YB007 on 2019/8/20.
  6. // Copyright © 2019 cat. All rights reserved.
  7. //
  8. #import "YBGiftCell.h"
  9. @implementation YBGiftCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. // cell size: 62/375/4 = 0.661(比列)
  14. }
  15. - (void)setModel:(YBGiftModel *)model {
  16. _model = model;
  17. [_iconIV sd_setImageWithURL:[NSURL URLWithString:_model.giftIconStr]];
  18. _nameL.text = _model.giftNameStr;
  19. _coinNameL.text = _model.needCoinNameStr;
  20. }
  21. @end