According to Apple's docs, hidesBottomBarWhenPushed, the UIViewController property is a Boolean value that indicates whether the toolbar is hidden at the bottom of the screen when the view controller is pressed on the navigation controller.
The value of this property on the top view controller determines whether the toolbar is visible.
The recommended approach to hiding the tab bar is as follows
ViewController *viewController = [[ViewController alloc] init]; viewController.hidesBottomBarWhenPushed = YES;
However, note that this approach will only apply to the corresponding viewController and will not apply to other view controllers unless you start setting the same hidesBottomBarWhenPushed property in other viewControllers before pushing it onto the navigation controller stack.
ldindu Jan 05 '14 at 16:18 2014-01-05 16:18
source share