//
//  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 = UIColorHex(#F5F5F5);
        self.contentView.layer.cornerRadius = 4.f;
        self.contentView.layer.masksToBounds = YES;
        [self.titleL mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_offset(UIEdgeInsetsZero);
        }];
        self.titleL.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}
- (UILabel *)titleL
{
    if (!_titleL) {
        _titleL = [UILabel new];
        _titleL.font = [UIFont systemFontOfSize:13];
        _titleL.textColor = UIColorHex(#858585);
    }
    return _titleL;
}
@end