|
@@ -8,10 +8,6 @@
|
|
|
|
|
|
#import "JYTabBarController.h"
|
|
#import "JYTabBarController.h"
|
|
#import "JYNavigationController.h"
|
|
#import "JYNavigationController.h"
|
|
-#import "JYSearchViewController.h"
|
|
|
|
-#import "JYSubViewController.h"
|
|
|
|
-#import "JYExpViewController.h"
|
|
|
|
-#import "JYMineViewController.h"
|
|
|
|
#import "JYNewSearchViewController.h"
|
|
#import "JYNewSearchViewController.h"
|
|
#import "JYNewSubViewController.h"
|
|
#import "JYNewSubViewController.h"
|
|
#import "JYNewExpViewController.h"
|
|
#import "JYNewExpViewController.h"
|
|
@@ -20,11 +16,6 @@
|
|
|
|
|
|
@interface JYTabBarController ()<UITabBarControllerDelegate>
|
|
@interface JYTabBarController ()<UITabBarControllerDelegate>
|
|
|
|
|
|
-@property (nonatomic,strong)JYSearchViewController *V1;
|
|
|
|
-@property (nonatomic,strong)JYSubViewController *V2;
|
|
|
|
-@property (nonatomic,strong)JYExpViewController *V3;
|
|
|
|
-@property (nonatomic,strong)JYMineViewController *V4;
|
|
|
|
-
|
|
|
|
@property (nonatomic,strong)JYNewSearchViewController *VC1;
|
|
@property (nonatomic,strong)JYNewSearchViewController *VC1;
|
|
@property (nonatomic,strong)JYNewSubViewController *VC2;
|
|
@property (nonatomic,strong)JYNewSubViewController *VC2;
|
|
@property (nonatomic,strong)JYNewExpViewController *VC3;
|
|
@property (nonatomic,strong)JYNewExpViewController *VC3;
|
|
@@ -102,7 +93,6 @@
|
|
#pragma mark - -----------------------------------------
|
|
#pragma mark - -----------------------------------------
|
|
- (void)setUpAllChildVc
|
|
- (void)setUpAllChildVc
|
|
{
|
|
{
|
|
-// [self oldChildVC];
|
|
|
|
[self newChildVC];
|
|
[self newChildVC];
|
|
}
|
|
}
|
|
|
|
|
|
@@ -120,21 +110,6 @@
|
|
[self setUpOneChildVcWithVc:self.VC4 Image:@"four_1" selectedImage:@"four" title:@"我的" tag:3];
|
|
[self setUpOneChildVcWithVc:self.VC4 Image:@"four_1" selectedImage:@"four" title:@"我的" tag:3];
|
|
}
|
|
}
|
|
|
|
|
|
--(void)oldChildVC {
|
|
|
|
- self.V1 = [[JYSearchViewController alloc] init];
|
|
|
|
- [self setUpOneChildVcWithVc:self.V1 Image:@"one_1" selectedImage:@"one" title:@"首页" tag:0];
|
|
|
|
-
|
|
|
|
- self.V2 = [[JYSubViewController alloc] init];
|
|
|
|
- [self setUpOneChildVcWithVc:self.V2 Image:@"two_1" selectedImage:@"two" title:@"订阅" tag:1];
|
|
|
|
-
|
|
|
|
- self.V3 = [[JYExpViewController alloc] init];
|
|
|
|
- [self setUpOneChildVcWithVc:self.V3 Image:@"three_1" selectedImage:@"three" title:@"百宝箱" tag:2];
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- self.V4 = [[JYMineViewController alloc] init];
|
|
|
|
- [self setUpOneChildVcWithVc:self.V4 Image:@"four_1" selectedImage:@"four" title:@"我的" tag:3];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#pragma mark - 初始化设置tabBar上面单个按钮的方法
|
|
#pragma mark - 初始化设置tabBar上面单个按钮的方法
|
|
|
|
|
|
/**
|
|
/**
|