Files
WebApp/ShenQi/NotiCenterImageTableViewCell.m
2025-01-11 15:54:19 +08:00

39 lines
925 B
Objective-C

//
// NotiCenterImageTableViewCell.m
// ShenQi
//
// Created by twotutoo on 2025/1/11.
//
#import "NotiCenterImageTableViewCell.h"
#import "MacroDefine.h"
#import <SDWebImage.h>
@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 placeholderImage:[UIImage imageNamed:@"zhanwei"]];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end