// // SearchCell.m // smartRhino // // Created by niuzhen on 2020/1/2. // Copyright © 2020 tederen. All rights reserved. // #import "SearchCell.h" @implementation SearchCell - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self.contentView addSubview:self.titleL]; self.contentView.backgroundColor = [UIColor whiteColor]; [self.titleL mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_offset(15); make.right.mas_offset(-15); make.centerY.mas_equalTo(self.contentView); }]; } return self; } - (UILabel *)titleL { if (!_titleL) { _titleL = [UILabel new]; _titleL.font = [UIFont systemFontOfSize:12]; _titleL.textColor = UIColorHex(#999999); } return _titleL; } @end