This commit is contained in:
2026-02-11 19:31:12 +08:00
parent ae4070ae88
commit 0144f9cc6d
2 changed files with 6 additions and 4 deletions

View File

@@ -99,9 +99,8 @@
- (void)buttonTapped:(UIButton *)button {
NSInteger index = button.tag;
if (index != self.selectedIndex) {
self.selectedIndex = index;
[self updateButtonStates];
// delegate delegate
// delegate setSelectedIndex:
if ([self.delegate respondsToSelector:@selector(customTabBar:
didSelectItemAtIndex:)]) {
[self.delegate customTabBar:self didSelectItemAtIndex:index];