This commit is contained in:
2025-12-03 15:19:03 +08:00
parent 599a5de3bc
commit a50d18b486
14 changed files with 832 additions and 2 deletions

View File

@@ -23,6 +23,8 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.delegate = self;
[self setupTabbarAppearance];
// 4 Tab / / /
@@ -104,6 +106,28 @@
return item;
}
#pragma mark - UITabBarControllerDelegate
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {
// tab
if (tabBarController.selectedViewController == viewController) {
return YES;
}
NSUInteger index = [tabBarController.viewControllers indexOfObject:viewController];
if (index == NSNotFound) {
return YES;
}
// tab 4 3
if (index == 3 && ![KBUserSessionManager shared].isLoggedIn) {
[[KBUserSessionManager shared] goLoginVC];
return NO;
}
return YES;
}
/*
#pragma mark - Navigation