提交
This commit is contained in:
@@ -13,17 +13,18 @@
|
||||
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:(SRRankListResponseModel *)model{
|
||||
// _model = model;
|
||||
// [self.headerImageView1 sd_setImageWithURL:[NSURL URLWithString:model.head_picture1] placeholderImage:[UIImage imageNamed:@"user_header_placehoulder"]];
|
||||
// [self.headerImageView2 sd_setImageWithURL:[NSURL URLWithString:model.head_picture2] placeholderImage:[UIImage imageNamed:@"user_header_placehoulder"]];
|
||||
// self.nameLabel.text = [NSString stringWithFormat:@"%@\n%@",model.nickname1,model.nickname2];
|
||||
// self.valueLabel.text = model.number;
|
||||
// self.numberLabel.text = model.rank;
|
||||
//}
|
||||
-(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
|
||||
|
||||
Reference in New Issue
Block a user