// // SearchTabCell.m // smartRhino // // Created by niuzhen on 2020/4/8. // Copyright © 2020 tederen. All rights reserved. // #import "SearchTabCell.h" @implementation SearchTabCell - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self.contentView addSubview:self.titleL]; self.contentView.backgroundColor = UIColorHex(0xF5F5F5); self.contentView.layer.cornerRadius = 4.f; self.contentView.layer.masksToBounds = YES; [self.titleL mas_makeConstraints:^(MASConstraintMaker *make) { make.center.mas_equalTo(self.contentView); }]; } return self; } - (UILabel *)titleL { if (!_titleL) { _titleL = [UILabel new]; _titleL.font = [UIFont systemFontOfSize:13]; _titleL.textColor = UIColorHex(0x858585); } return _titleL; } @end