ExamListCell.m 853 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // ExamListCell.m
  3. // MusicGradeExam
  4. //
  5. // Created by Kyle on 2020/7/22.
  6. // Copyright © 2020 DayaMusic. All rights reserved.
  7. //
  8. #import "ExamListCell.h"
  9. @interface ExamListCell ()
  10. @property (weak, nonatomic) IBOutlet UILabel *examName;
  11. @property (nonatomic, strong) BaseExamModel *sourceModel;
  12. @end
  13. @implementation ExamListCell
  14. - (void)awakeFromNib {
  15. [super awakeFromNib];
  16. // Initialization code
  17. self.selectionStyle = UITableViewCellSelectionStyleNone;
  18. }
  19. - (void)configCellWithSource:(BaseExamModel *)source {
  20. // 赋值
  21. self.sourceModel = source;
  22. self.examName.text = [NSString returnNoNullStringWithString:self.sourceModel.baseExamName];
  23. }
  24. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  25. [super setSelected:selected animated:animated];
  26. // Configure the view for the selected state
  27. }
  28. @end