Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/117.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用JASidePanelViewController实现UITabViewController_Ios_Uiviewcontroller_Uitabview_Jasidepanels - Fatal编程技术网

Ios 使用JASidePanelViewController实现UITabViewController

Ios 使用JASidePanelViewController实现UITabViewController,ios,uiviewcontroller,uitabview,jasidepanels,Ios,Uiviewcontroller,Uitabview,Jasidepanels,我正在用UITabViewController实现JASidePanel,但我有一些问题要实现 目前我有一个带有UITabView 滑动后显示这样的类别 但是我只想滑动一个viewcontroller而不是UITabViewController 这是我在Baseviewcontroller中的代码,它是JASidePanelViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additio

我正在用
UITabViewController
实现
JASidePanel
,但我有一些问题要实现

目前我有一个带有
UITabView

滑动后显示这样的类别

但是我只想滑动一个
viewcontroller
而不是
UITabViewController

这是我在
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"]];

  }

感谢您的帮助

使用MMDrawerController非常容易集成

   //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