VideoCollectionViewCell.m 831 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // VideoCollectionViewCell.m
  3. // BuguLive
  4. //
  5. // Created by 王珂 on 17/5/2.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "VideoCollectionViewCell.h"
  9. @implementation VideoCollectionViewCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. self.backView.backgroundColor = kGrayTransparentColor2;
  14. //self.backView.backgroundColor = [UIColor clearColor];
  15. self.placeLabel.textColor = [UIColor whiteColor];
  16. self.videoImageView.contentMode = UIViewContentModeScaleAspectFill;
  17. self.videoImageView.clipsToBounds = YES;
  18. }
  19. -(void)setModel:(HMHotItemModel *)model
  20. {
  21. _model = model;
  22. [self.videoImageView sd_setImageWithURL:[NSURL URLWithString:model.live_image] placeholderImage:[UIImage imageNamed:@"DefaultImg"]];
  23. self.placeLabel.text = model.city;
  24. }
  25. @end