2015-05-19 5 views
0

Я реализую JASidePanel с UITabViewController, но у меня есть некоторые проблемы для реализации.Внедрить UITabViewController с JASidePanelViewController

В настоящее время я Категория контроллер с UITabView

enter image description here

вид После скольжения категория показывает, как этот

enter image description here

, но я хочу, чтобы скользить только один 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"]]; 

    } 

Цените помощь

ответ

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 

 Смежные вопросы

  • Нет связанных вопросов^_^