|
@@ -78,7 +78,7 @@
|
|
|
|
|
|
//判断是否跳转
|
|
//判断是否跳转
|
|
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController{
|
|
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController{
|
|
- NSLog(@"点击了第几个item:%ld",tabBarController.tabBar.selectedItem.tag);
|
|
|
|
|
|
+ NSLog(@"点击了第几个item:%ld",(long)tabBarController.tabBar.selectedItem.tag);
|
|
// if(tabBarController.tabBar.selectedItem.tag==0) {
|
|
// if(tabBarController.tabBar.selectedItem.tag==0) {
|
|
// return NO;
|
|
// return NO;
|
|
// }
|
|
// }
|
|
@@ -86,7 +86,7 @@
|
|
|
|
|
|
if(tabBarController.tabBar.selectedItem.tag!=0) {
|
|
if(tabBarController.tabBar.selectedItem.tag!=0) {
|
|
NSLog(@"没有token前往登录");
|
|
NSLog(@"没有token前往登录");
|
|
- NSString *index = [NSString stringWithFormat:@"%ld",tabBarController.tabBar.selectedItem.tag];
|
|
|
|
|
|
+ NSString *index = [NSString stringWithFormat:@"%ld",(long)tabBarController.tabBar.selectedItem.tag];
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:LoginIndexTabBar object:nil userInfo:@{@"item_index":index}];
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:LoginIndexTabBar object:nil userInfo:@{@"item_index":index}];
|
|
return NO;
|
|
return NO;
|
|
}else {
|
|
}else {
|