补充key

This commit is contained in:
2026-03-07 13:43:26 +08:00
parent cbcf8c4197
commit 6327f31f11
12 changed files with 49 additions and 20 deletions

View File

@@ -56,7 +56,7 @@
_character = character;
self.titleLabel.text = character.characterName ?: @"";
self.downloadLabel.text = character.download ?: @"";
self.downloadLabel.text = character.download ?: [NSString stringWithFormat:@"%@: 0", KBLocalized(@"Download")];
self.descLabel.text = character.characterBackground ?: @"";
[self.avatarView kb_setImageURL:character.avatarUrl placeholder:KBAvatarPlaceholderImage];
[self kb_updateSaveButtonWithAdded:character.added];
@@ -152,7 +152,7 @@
} else {
self.saveButton.enabled = YES;
self.saveButton.backgroundColor = [UIColor colorWithRed:0.02 green:0.75 blue:0.67 alpha:1.0];
[self.saveButton setTitle:@"Save" forState:UIControlStateNormal];
[self.saveButton setTitle:KBLocalized(@"Save") forState:UIControlStateNormal];
[self.saveButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
}
}
@@ -203,7 +203,7 @@
_titleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_titleLabel.font = [KBFont medium:16];
_titleLabel.textAlignment = NSTextAlignmentCenter;
_titleLabel.text = @"High EQ"; //
_titleLabel.text = @"";
}
return _titleLabel;
}
@@ -215,7 +215,7 @@
_downloadLabel.backgroundColor = [UIColor colorWithHex:0xEDFFFD];
_downloadLabel.font = [KBFont regular:13];
_downloadLabel.textAlignment = NSTextAlignmentCenter;
_downloadLabel.text = @"Download: 1 Million";
_downloadLabel.text = [NSString stringWithFormat:@"%@: 0", KBLocalized(@"Download")];
}
return _downloadLabel;
}
@@ -236,7 +236,7 @@
_descLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_descLabel.font = [KBFont medium:14];
_descLabel.numberOfLines = 0;
_descLabel.text = @"Be Neither Too Close\nNor Too Distant";
_descLabel.text = @"";
}
return _descLabel;
}
@@ -244,7 +244,7 @@
- (UIButton *)saveButton {
if (!_saveButton) {
_saveButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_saveButton setTitle:@"Save" forState:UIControlStateNormal];
[_saveButton setTitle:KBLocalized(@"Save") forState:UIControlStateNormal];
[_saveButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
_saveButton.titleLabel.font = [KBFont medium:16];
_saveButton.backgroundColor = [UIColor colorWithRed:0.02 green:0.75 blue:0.67 alpha:1.0];