1
This commit is contained in:
@@ -44,13 +44,13 @@
|
||||
image:@"tab_shop"
|
||||
selectedImg:@"tab_shop_selected"];
|
||||
|
||||
// 社区
|
||||
KBCommunityVC *community = [[KBCommunityVC alloc] init];
|
||||
// community.title = KBLocalized(@"Circle");
|
||||
BaseNavigationController *navCommunity = [[BaseNavigationController alloc] initWithRootViewController:community];
|
||||
navCommunity.tabBarItem = [self tabItemWithTitle:KBLocalized(@"Circle")
|
||||
image:@"tab_shequ"
|
||||
selectedImg:@"tab_shequ_selected"];
|
||||
// // 社区
|
||||
// KBCommunityVC *community = [[KBCommunityVC alloc] init];
|
||||
//// community.title = KBLocalized(@"Circle");
|
||||
// BaseNavigationController *navCommunity = [[BaseNavigationController alloc] initWithRootViewController:community];
|
||||
// navCommunity.tabBarItem = [self tabItemWithTitle:KBLocalized(@"Circle")
|
||||
// image:@"tab_shequ"
|
||||
// selectedImg:@"tab_shequ_selected"];
|
||||
|
||||
// 我的
|
||||
MyVC *my = [[MyVC alloc] init];
|
||||
@@ -59,7 +59,7 @@
|
||||
image:@"tab_my"
|
||||
selectedImg:@"tab_my_selected"];
|
||||
|
||||
self.viewControllers = @[navHome, navShop, navCommunity, navMy];
|
||||
self.viewControllers = @[navHome, navShop, navMy];
|
||||
|
||||
// 测试储存Token
|
||||
// [[KBAuthManager shared] saveAccessToken:@"TEST" refreshToken:nil expiryDate:[NSDate dateWithTimeIntervalSinceNow:3600] userIdentifier:nil];
|
||||
@@ -120,7 +120,7 @@
|
||||
}
|
||||
|
||||
// “我的” tab 默认为第 4 个(索引 3),未登录时先跳转登录页
|
||||
if (index == 3 && ![KBUserSessionManager shared].isLoggedIn) {
|
||||
if (index == 2 && ![KBUserSessionManager shared].isLoggedIn) {
|
||||
[[KBUserSessionManager shared] goLoginVC];
|
||||
return NO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user