Files
featherVoice/QXLive/Mine(音域)/View/歌单列表/QXMineSongListCell.m
2025-11-21 16:17:05 +08:00

40 lines
1.1 KiB
Objective-C

//
// QXMineSongListCell.m
// QXLive
//
// Created by 启星 on 2025/11/13.
//
#import "QXMineSongListCell.h"
@implementation QXMineSongListCell
+(instancetype)cellWithTableView:(UITableView *)tableView{
static NSString *cellId = @"QXMineSongListCell";
QXMineSongListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
if (!cell) {
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
cell.backgroundColor = [UIColor clearColor];
}
return cell;
}
-(void)setModel:(QXUserSongListModel *)model{
_model = model;
[self.giftImageView sd_setImageWithURL:[NSURL URLWithString:model.base_image]];
self.giftInfoLabel.text = [NSString stringWithFormat:@"x%@%@",model.gift_num,model.gift_name];
self.songNameLabel.text = model.song_name;
self.giftPriceLabel.text = model.gift_price;
}
- (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