This commit is contained in:
2026-02-09 16:53:30 +08:00
parent e4223b3a4c
commit 4dfd6f5cbb
7 changed files with 32 additions and 18 deletions

View File

@@ -124,6 +124,13 @@
for (NSInteger i = 0; i < self.buttons.count; i++) {
UIButton *button = self.buttons[i];
button.selected = (i == self.selectedIndex);
// 2
if (i == 2 && button.selected) {
[button setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected];
} else if (i == 2) {
[button setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
}
}
}