This commit is contained in:
2025-12-03 18:53:15 +08:00
parent 82123fc232
commit 1d6371c37e
3 changed files with 58 additions and 21 deletions

View File

@@ -118,15 +118,8 @@
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
HomeHotCell *cell = [tableView dequeueReusableCellWithIdentifier:HomeHotCell.reuseId forIndexPath:indexPath];
KBCharacter *item = self.listCharacters[indexPath.row];
NSInteger rank = (item.rank > 0) ? item.rank : (indexPath.row + 4); // rank 4
NSString *title = item.characterName ?: @"";
NSString *sub = item.download ?: @""; // download
BOOL joined = item.added;
// cell
[cell configWithRank:rank
title:title
subtitle:sub
joined:joined];
// cell cell
cell.character = item;
return cell;
}