Files
yuyin_ios/SweetParty/主类/Dynamic/View/SPTrendCommentCell.m

27 lines
635 B
Mathematica
Raw Normal View History

2025-08-08 11:05:33 +08:00
//
// SPTrendCommentCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/6.
//
#import "SPTrendCommentCell.h"
#import "UILabel+ChangeSpace.h"
@implementation SPTrendCommentCell
- (void)awakeFromNib {
[super awakeFromNib];
}
- (void)setModel:(SPTrendCommentModel *)model {
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = model.nick_name;
self.timeLab.text = [NSString compareCurrentTime:model.add_time];
self.contentLab.text = model.content;
[UILabel changeLineSpaceForLabel:self.contentLab WithSpace:3];
}
@end