MainLiveTableViewCell.m 862 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // MainLiveTableViewCell.m
  3. // BuguLive
  4. //
  5. // Created by fanwe2014 on 16/6/15.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. #import "MainLiveTableViewCell.h"
  8. #import "SenderModel.h"
  9. @implementation MainLiveTableViewCell
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. self.backgroundColor = kWhiteColor;
  14. self.titleLabel.textColor = self.watchLabel.textColor =kAppGrayColor1;
  15. self.timelabel.textColor = kAppGrayColor3;
  16. self.lineView.backgroundColor = kAppSpaceColor4;
  17. }
  18. - (void)creatCellWithModel:(SenderModel *)model
  19. {
  20. self.titleLabel.text = model.title;
  21. self.timelabel.text = model.begin_time_format;
  22. NSString *numString;
  23. if (model.watch_number_format.length < 1)
  24. {
  25. numString = @"0";
  26. }else
  27. {
  28. numString = model.watch_number_format;
  29. }
  30. self.watchLabel.text = numString;
  31. }
  32. @end