My storyboard is as below:
UINavigationController
|
UITabbarController
|
HomeVC - Container
|
PageViewController
|
MainVC | MenVC | WomenVC | ElectronicsVC ...
I try to push a new view controller from MainVC, using tabbarcontroller. I want the bottom tabbar to be visible but I can't. Everytime when new viewcontroller is pushed, it will be in full screen.
In my NavigationHelper.m,
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainV3" bundle:nil];
MyNewViewController *myNewVC = [storyboard instantiateViewControllerWithIdentifier:@"MyNewViewController"];
[myTabbarController setHidesBottomBarWhenPushed:NO];
[myTabbarController.navigationController pushViewController:myNewVC animated:YES];
// I have checked myTabbarController and myNewVC instances are not nil.
The reason why I use pageviewcontroller in this design because I need few view controllers in first item of tabbarcontroller.
Set tabbarcontroller setHidesBottomBarWhenPushed property to YES before I push new controller is not working too.
I have checked the container inside HomeVC is not covering the tabbar.
