// // NotiCenterImageTableViewCell.m // ShenQi // // Created by twotutoo on 2025/1/11. // #import "NotiCenterImageTableViewCell.h" #import "MacroDefine.h" #import @implementation NotiCenterImageTableViewCell - (void)awakeFromNib { [super awakeFromNib]; [self setSelectionStyle:(UITableViewCellSelectionStyleNone)]; self.contentView.backgroundColor = UIColorFromRGB(0xFAFAFA); } -(void)setList:(PushRecordList *)list { _list = list; NSURL *url = [NSURL URLWithString:self.list.image]; self.contentLabel.text = self.list.content; self.imageHeightConstraint.constant = self.list.imageHeight; [self.contentImageView sd_setImageWithURL:url]; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end