How to hide the tabBar when push a view?
use this methood in the UIViewController class where you want to hide the tabBarController
-(BOOL)hidesBottomBarWhenPushed{ return YES;}
Update
As suggested by @Yuchen Zhong in his answer, This option is now available in the storyboard itself.
You can do this in storyboard now:
- Select the UIViewController in your storyboard
- Select the checkbox Hide Bottom Bar on Push
Set UIViewController.hidesBottomBarWhenPushed = YES
when you want hide tab bar.
nextViewController.hidesBottomBarWhenPushed = YES;