// // FindResultViewCell.m // smartRhino // // Created by niuzhen on 2019/12/7. // Copyright © 2019 tederen. All rights reserved. // #import "FindResultViewCell.h" @implementation FindResultViewCell - (void)awakeFromNib { [super awakeFromNib]; UILabel * line = [UILabel new]; [self.contentView addSubview:line]; line.backgroundColor = UIColorHex(E5E5E5); [line mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_offset(15); make.height.offset(0.5); make.bottom.right.mas_equalTo(self.contentView); }]; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } - (void)loadDataWithModel:(FindChatItemsModel *)model { [self.IconV sd_setImageWithURL:[NSURL URLWithString:model.AvatarUrl] placeholderImage:[UIImage imageNamed:@"imagePlaceholder"]]; self.TitleL.text = model.Content; self.TimeL.text = model.CreatedDate; self.SubTitleL.text = model.Name; } @end