HWFolderListCell.m 601 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // HWFolderListCell.m
  3. // Private-X
  4. //
  5. // Created by 余衡武 on 2022/3/23.
  6. //
  7. #import "HWFolderListCell.h"
  8. @implementation HWFolderListCell
  9. - (void)awakeFromNib {
  10. [super awakeFromNib];
  11. // Initialization code
  12. }
  13. - (void)setModel:(HWFolderModel *)model {
  14. _model = model;
  15. self.nameLabel.text = model.name;
  16. if (model.isSelected) {
  17. self.selectBtn.selected = YES;
  18. self.nameLabel.textColor = [UIColor hwColor:@"#3B7FFF"];
  19. }else {
  20. self.selectBtn.selected = NO;
  21. self.nameLabel.textColor = [UIColor hwColor:@"#FFFFFF"];
  22. }
  23. }
  24. @end