// // KWHisKeyWordCell.m // westkissMob // // Created by iOS on 2022/9/14. // #import "KWHisKeyWordCell.h" @implementation KWHisKeyWordCell - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self configSubV]; } return self; } -(void)configSubV { self.backgroundColor = [UIColor whiteColor]; 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:12]; lb.textAlignment = NSTextAlignmentCenter; lb.textColor = [UIColor colorWithHexString:@"#1F1D2B"]; _titleLb = lb; } return _titleLb; } @end