39 lines
925 B
Objective-C
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
|