GamelistCollectionViewCell.m 739 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // GamelistCollectionViewCell.m
  3. // BuguLive
  4. //
  5. // Created by yy on 16/11/25.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "GamelistCollectionViewCell.h"
  9. @implementation GamelistCollectionViewCell
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. self.gamePlaying_L.backgroundColor = [kAppGrayColor1 colorWithAlphaComponent:0.6];
  14. self.gameName.textColor = RGB(255, 255, 255);
  15. }
  16. - (void)creatCellWithModel:(GameModel *)model withRow:(int)row
  17. {
  18. self.rowCount = row;
  19. //游戏封面
  20. if (model.image.length != 0)
  21. {
  22. [self.gameImg sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:kDefaultPreloadImgSquare];
  23. }
  24. self.gameName.text = model.name;
  25. }
  26. @end