// // KWNoHisWordsCell.m // westkissMob // // Created by iOS on 2022/9/14. // #import "KWNoHisWordsCell.h" @implementation KWNoHisWordsCell - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self configSubV]; } return self; } -(void)configSubV { self.backgroundColor = [UIColor colorWithHexString:@"#F8F8F8"]; // self.layer.cornerRadius = 2; [self addSubview:self.titleLb]; [self.titleLb mas_makeConstraints:^(MASConstraintMaker *make) { make.top.left.equalTo(self).offset(5); make.center.equalTo(self); }]; } - (UILabel *)titleLb { if (!_titleLb) { UILabel * lb = [[UILabel alloc] init]; lb.font = [UIFont fontWithName:Rob_Regular size:16]; lb.textAlignment = NSTextAlignmentCenter; lb.text = @"No Search Record Yet."; lb.textColor = [[UIColor colorWithHexString:@"#1F1D2B"] colorWithAlphaComponent:0.3]; _titleLb = lb; } return _titleLb; } @end