重庆迈尖科技有限公司
2019-05-08 8c116459f2308e9f8564ea8f55b2ca25849b8336
BuWanVideo2.0/AppDelegate.m
@@ -28,7 +28,7 @@
#import "LeftViewController.h"
#import "SJTabbarViewController.h"
#import "UITabBar+mainTab.h"
#import "GuessLikeViewController.h"
#define LECUsedBundleID   @"com.yeshi.buwanshequ.ios"
@@ -312,19 +312,33 @@
    [self.window makeKeyAndVisible];
    
    recommendViewController *recommendVC = [[recommendViewController alloc]init];
    recommendVC.tabBarItem.image = [[UIImage imageNamed:@"Home-拷贝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    recommendVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"Home"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *nrecommendVC = [[UINavigationController alloc]initWithRootViewController:recommendVC];
    
    subregionViewController *subVC = [[subregionViewController alloc]init];
    subVC.tabBarItem.image = [[UIImage imageNamed:@"Camera-拷贝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    subVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"Camera"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *nsubVC = [[UINavigationController alloc]initWithRootViewController:subVC];
    
    discoverViewController *disVC = [[discoverViewController alloc]init];
    disVC.tabBarItem.image = [[UIImage imageNamed:@"Navigation-拷贝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    disVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"Navigation"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *ndisVC = [[UINavigationController alloc]initWithRootViewController:disVC];
    
    LeftViewController *mineVC = [[LeftViewController alloc]init];
    mineVC.tabBarItem.image = [[UIImage imageNamed:@"User-拷贝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    mineVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"User"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *nmineVC = [[UINavigationController alloc]initWithRootViewController:mineVC];
    
    GuessLikeViewController *guessVC = [[GuessLikeViewController alloc]init];
    guessVC.tabBarItem.image = [[UIImage imageNamed:@"HEART2"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    guessVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"HEART"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *nguessVC = [[UINavigationController alloc]initWithRootViewController:guessVC];
    SJTabbarViewController *tabBarController = [[SJTabbarViewController alloc]init];
    tabBarController.viewControllers = @[nrecommendVC,nsubVC,ndisVC,nmineVC];
    tabBarController.viewControllers = @[nrecommendVC,ndisVC,nguessVC,nsubVC,nmineVC];
    tabBarController.tabBar.tintColor = YTHColor(248, 89, 69);
    [tabBarController.tabBar setClipsToBounds:YES];
    tabBarController.tabBar.opaque = YES;