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