KWNoHisWordsCell.m 1022 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // KWNoHisWordsCell.m
  3. // westkissMob
  4. //
  5. // Created by iOS on 2022/9/14.
  6. //
  7. #import "KWNoHisWordsCell.h"
  8. @implementation KWNoHisWordsCell
  9. - (instancetype)initWithFrame:(CGRect)frame {
  10. self = [super initWithFrame:frame];
  11. if (self) {
  12. [self configSubV];
  13. }
  14. return self;
  15. }
  16. -(void)configSubV {
  17. self.backgroundColor = [UIColor colorWithHexString:@"#F8F8F8"];
  18. // self.layer.cornerRadius = 2;
  19. [self addSubview:self.titleLb];
  20. [self.titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
  21. make.top.left.equalTo(self).offset(5);
  22. make.center.equalTo(self);
  23. }];
  24. }
  25. - (UILabel *)titleLb {
  26. if (!_titleLb) {
  27. UILabel * lb = [[UILabel alloc] init];
  28. lb.font = [UIFont fontWithName:Rob_Regular size:16];
  29. lb.textAlignment = NSTextAlignmentCenter;
  30. lb.text = @"No Search Record Yet.";
  31. lb.textColor = [[UIColor colorWithHexString:@"#1F1D2B"] colorWithAlphaComponent:0.3];
  32. _titleLb = lb;
  33. }
  34. return _titleLb;
  35. }
  36. @end