HomeScrCell.m 641 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // HomeScrCell.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2020/3/16.
  6. // Copyright © 2020 tederen. All rights reserved.
  7. //
  8. #import "HomeScrCell.h"
  9. @implementation HomeScrCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. self.titleL.backgroundColor = [UIColor whiteColor];
  13. self.titleL.textAlignment = NSTextAlignmentCenter;
  14. [self.titleL setFont:[UIFont systemFontOfSize:15.f]];
  15. }
  16. - (void)setDataWithTitle:(NSString *)text isSelect:(BOOL)isSelect
  17. {
  18. self.titleL.text = text;
  19. if (isSelect) {
  20. [self.titleL setTextColor:UIColorHex(1682DA)];
  21. }else{
  22. [self.titleL setTextColor:k6];
  23. }
  24. }
  25. @end