소스 검색

tabbar修正

hxb 8 년 전
부모
커밋
a5c782c5be
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      WSCloudStorage/CloudStorage/CSTabBarController.m

+ 4 - 4
WSCloudStorage/CloudStorage/CSTabBarController.m

@@ -43,20 +43,20 @@
     [nv2.tabBarItem setTitleTextAttributes:attributes forState:UIControlStateSelected];
   
     BaseViewController *vc3 = [[CSFileTransListController alloc] init];
-    IWNavigationController *nv3 = [self allocNavgationController:vc2];
+    IWNavigationController *nv3 = [self allocNavgationController:vc3];
     
     UIImage* nv3Img = [UIImage imageNamed:@"msg_icon"];
     UIImage* nv3SelImg = [[UIImage imageNamed:@"msg_icon_sel"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
-    nv3.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"传输列表" image:nv2Img selectedImage:nv2SelImg];
+    nv3.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"传输列表" image:nv3Img selectedImage:nv3SelImg];
     nv3.tabBarItem.tag=2;//112, 200, 242
     [nv3.tabBarItem setTitleTextAttributes:attributes forState:UIControlStateSelected];
     
     BaseViewController *vc4 = [[PreferencesViewController alloc] init];
-    IWNavigationController *nv4 = [self allocNavgationController:vc2];
+    IWNavigationController *nv4 = [self allocNavgationController:vc4];
     
     UIImage* nv4Img = [UIImage imageNamed:@"msg_icon"];
     UIImage* nv4SelImg = [[UIImage imageNamed:@"msg_icon_sel"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
-    nv4.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"更多" image:nv2Img selectedImage:nv2SelImg];
+    nv4.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"更多" image:nv4Img selectedImage:nv4SelImg];
     nv4.tabBarItem.tag=3;//113, 200, 242
     [nv4.tabBarItem setTitleTextAttributes:attributes forState:UIControlStateSelected];
     self.viewControllers = @[nv1, nv2,nv3,nv4];