How to hide parent tabbar when pushing controller in navigationController How to hide parent tabbar when pushing controller in navigationController ios ios

How to hide parent tabbar when pushing controller in navigationController


After spending hours and posting a question here I found that the solution to this problem is adding the following line after the instantiation of ArticleController.

articleController.hidesBottomBarWhenPushed = YES;


If you prefer storyboard configuration over coding there is a toggle for that. Just go destinationViewController > Attribute Inspector:

enter image description here


A very simple solution:

 destinationViewController.hidesBottomBarWhenPushed = YES;

In your case:

 articleController.hidesBottomBarWhenPushed = YES;

Hope this helps!


matomo