This commit is contained in:
Yao
2025-01-11 14:58:16 +08:00
parent f82486e8b0
commit 1095c32599
262 changed files with 62730 additions and 36131 deletions

View File

@@ -0,0 +1,38 @@
//
// 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];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end