FindResultViewCell.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // FindResultViewCell.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2019/12/7.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "FindResultViewCell.h"
  9. @implementation FindResultViewCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. UILabel * line = [UILabel new];
  13. [self.contentView addSubview:line];
  14. line.backgroundColor = UIColorHex(E5E5E5);
  15. [line mas_makeConstraints:^(MASConstraintMaker *make) {
  16. make.left.mas_offset(15);
  17. make.height.offset(0.5);
  18. make.bottom.right.mas_equalTo(self.contentView);
  19. }];
  20. }
  21. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  22. [super setSelected:selected animated:animated];
  23. // Configure the view for the selected state
  24. }
  25. - (void)loadDataWithModel:(FindChatItemsModel *)model
  26. {
  27. [self.IconV sd_setImageWithURL:[NSURL URLWithString:model.AvatarUrl] placeholderImage:[UIImage imageNamed:@"imagePlaceholder"]];
  28. self.TitleL.text = model.Content;
  29. self.TimeL.text = model.CreatedDate;
  30. self.SubTitleL.text = model.Name;
  31. }
  32. @end