0

我正在实施JASidePanelUITabViewController但我有一些问题要实施。

目前我有类别视图控制器UITabView

在此处输入图像描述

像这样滑动显示类别后

在此处输入图像描述

但我只想滑动一个viewcontrollerUITabViewController

这是我的代码,Baseviewcontroller其中的子类JASidePanelViewController

  - (void)viewDidLoad
   {
     [super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
    self.navigationItem.rightBarButtonItem = self.leftButtonForCenterPanel;
    self.navigationItem.rightBarButtonItem.tintColor = [UIColor grayColor];

  }

  -(void) awakeFromNib
  {
   [self setRightPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"CategoryViewController"]];
   [self setCenterPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"tabVC"]];

  }

感谢帮助

4

2 回答 2

0

使用MMDrawerController 很容易集成。

https://github.com/mutualmobile/MMDrawerController

于 2015-05-19T08:59:31.960 回答
0
   //first of all create tab bar and four navigation controller
    IBOutlet UIView *TabbarView;
    UINavigationController* childNavCtrl1;
    UINavigationController* childNavCtrl2;
    UINavigationController* childNavCtrl3;
    UINavigationController* childNavCtrl4;
    UINavigationController* childNavCtrl5;


viewDidLoad{
FavouriteVC * objFav = [[FavouriteVC alloc] init];
objFav.extendedLayoutIncludesOpaqueBars = YES;
childNavCtrl1 = [[UINavigationController alloc] initWithRootViewController:mRiviHomeVC];
childNavCtrl1.navigationBarHidden = YES;

//same do for rest of three view controller 


now whenever user tap on any tab bar 


[self.view addSubview:childNavCtrl1.view] ;// for this u need to check condition when u need to show which view controller
于 2015-05-19T12:40:18.190 回答