0

I am implementingJASidePanel withUITabViewController but I have some problem to implement.

Currently I have Category view controller with UITabView

enter image description here

After sliding shows category like this

enter image description here

but I want to slide only oneviewcontroller not UITabViewController.

here is my code inBaseviewcontroller which is subclass ofJASidePanelViewController

  - (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"]];

  }

Appreciate for help

Ashok Londhe
  • 1,491
  • 11
  • 29
Vinod Jadhav
  • 1,055
  • 1
  • 15
  • 37

2 Answers2

0

Use MMDrawerController is very easy to integrate.

https://github.com/mutualmobile/MMDrawerController

Adarsh G J
  • 2,684
  • 1
  • 24
  • 25
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
Shobhakar Tiwari
  • 7,862
  • 4
  • 36
  • 71