Files
featherVoice/QXLive/HomePage(声播)/View/首页/排行榜/QXRankCPListCell.m
2025-10-25 19:38:29 +08:00

40 lines
1.3 KiB
Objective-C

//
// QXRankCPListCell.m
// IsLandVoice
//
// Created by 启星 on 2025/3/4.
//
#import "QXRankCPListCell.h"
@implementation QXRankCPListCell
+(instancetype)cellWithTableView:(UITableView *)tableView{
static NSString *cellId = @"QXRankCPListCell";
QXRankCPListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
if (!cell) {
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
cell.backgroundColor = UIColor.clearColor;
}
return cell;
}
-(void)setModel:(QXMyRankModel *)model{
_model = model;
[self.headerImageView1 sd_setImageWithURL:[NSURL URLWithString:model.user_avatar] placeholderImage:[UIImage imageNamed:@"user_header_placehoulder"]];
[self.headerImageView2 sd_setImageWithURL:[NSURL URLWithString:model.user_avatar1] placeholderImage:[UIImage imageNamed:@"user_header_placehoulder"]];
self.nameLabel.text = [NSString stringWithFormat:@"%@\n%@",model.nickname,model.nickname1];
self.valueLabel.text = [NSString qx_showHotCountNum:model.total.longLongValue];
self.numberLabel.text = model.rank;
}
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end