Files
featherVoice/QXLive/HomePage(声播)/View/首页/排行榜/QXRankCPListCell.m

41 lines
1.4 KiB
Mathematica
Raw Normal View History

2025-08-08 10:49:36 +08:00
//
// 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;
2025-10-25 19:38:29 +08:00
cell.backgroundColor = UIColor.clearColor;
2025-08-08 10:49:36 +08:00
}
return cell;
}
2025-10-25 19:38:29 +08:00
-(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];
2025-12-06 16:55:26 +08:00
// self.valueLabel.text = [NSString qx_showHotCountNum:model.total.longLongValue];
self.valueLabel.text = [NSString stringWithFormat:@"Lv %@",model.total];
2025-10-25 19:38:29 +08:00
self.numberLabel.text = model.rank;
}
2025-08-08 10:49:36 +08:00
- (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