apple 5 years ago
parent
commit
b809a6ff96

BIN
ios/JianYuIOS/JianYuIOS.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate


+ 2 - 2
ios/JianYuIOS/JianYuIOS/JYTabBarController.m

@@ -78,7 +78,7 @@
 
 //判断是否跳转
 - (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) {
 //        return NO;
 //    }
@@ -86,7 +86,7 @@
     
         if(tabBarController.tabBar.selectedItem.tag!=0) {
             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}];
             return NO;
         }else {