This commit is contained in:
2025-11-06 16:05:28 +08:00
parent 41aec6b89e
commit 1f45564539
10 changed files with 395 additions and 15 deletions

View File

@@ -7,6 +7,7 @@
#import "BaseTabBarController.h"
#import "HomeVC.h"
#import "HomeMainVC.h"
#import "MyVC.h"
#import "BaseNavigationController.h"
#import "KBAuthManager.h"
@@ -19,7 +20,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
// Setup two tabs: Home & My, each embedded in BaseNavigationController
HomeVC *home = [[HomeVC alloc] init];
HomeMainVC *home = [[HomeMainVC alloc] init];
home.title = @"首页";
BaseNavigationController *navHome = [[BaseNavigationController alloc] initWithRootViewController:home];
navHome.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"首页" image:nil selectedImage:nil];
@@ -31,7 +32,8 @@
self.viewControllers = @[navHome, navMy];
[[KBAuthManager shared] saveAccessToken:@"TEST" refreshToken:nil expiryDate:[NSDate dateWithTimeIntervalSinceNow:3600] userIdentifier:nil];
// Token
/*[[KBAuthManager shared] saveAccessToken:@"TEST" refreshToken:nil expiryDate:[NSDate dateWithTimeIntervalSinceNow:3600] userIdentifier:nil]*/;
}
/*