My iPhone app display Tab-bar with 3 tabs on button Click.
It works fine with initial 3 UIViewControllers.
But when I try to push new UIViewController within any TAB, tab bar disappears.
I even tried other solution mention here http://stackoverflow.com/questions/31087181/tab-bar-controller-is-not-in-all-uiviewcontrollers
However I could only see blank space with no tab bar options...
I tried without navigation pushing UIViewController like normal way. I
also pushing
UIViewController
UIViewController
-(IBAction)btnReceivePressed:(id)sender
{
TabBarViewController *about_vc = (TabBarViewController*)[[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"TABBAR"];
[[self navigationController] pushViewController:about_vc animated:YES];
}
Try this for set property of UIViewcontroller:
2 .Another solution for Two NAvigation Bar :
You need to change in appdelgate as below :
From :
UINavigationController *naController =[[UINavigationController alloc ]initWithRootViewController:self.tabBarController];
naController.navigationBarHidden = NO;
self.window.rootViewController = naController;
With :
self.window.rootViewController = self.tabBarController;
3 . If you are use push .
- (IBAction)btnReceivePressed:(id)sender {
TabBarViewController about_vc = (TabBarViewController)[[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"TABBAR"];
[self navigationController].navigationBarHidden = YES;
[[self navigationController] pushViewController:about_vc animated:YES];
}