Reputation: 23561
I have a UITabBarController and a few tabs, each associated with a child view controller.
Now in one of those child view controller, if I push a view controller, it doesn't push in fullscreen, but rather "above" the UITabBar.
How can I push it in fullscreen?
P.S I already tried the hidesBottomBarWhenPushed
option, when the destination view controller is present, I can see a blank area at the bottom, then the view is stretched to fill that blank area, look weird.
Upvotes: 3
Views: 1195
Reputation: 181
Before you push to the target viewController you should set targetViewController's hidesBottomBarWhenPushed
to Yes
Like this:
......
targetViewController.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:targetViewController animated:YES];
......
Upvotes: 1
Reputation: 2640
You have to apply hideTabBarsWhenPushed
on pushed view controller.
Upvotes: 1