I currently have Tab Bar Controller with a Navigation Controller, as described here.
As a result, the tab bar shows below each view.
Is there a way to hide the tab bar on consecutive screens, which are not directly connected to the tab bar controller, using Storyboard.
The current flow is pictured here:
Example of desired navigation
For example, "Second View" should show with the navigation controller, since it is direct child of Tab Bar Controller.
However, the "Third View" and "Fourth View", should have the navigation controller only (without the tab bar):
Actual (with tab bar) vs. the expected (desired result is the view without the tab bar):
Un-suggested solution
A possible way to get the desired flow is to create a navigation controller then connect it to the Tab Bar Controller. However this is not recommended as a UI pattern by Apple (Apple docs suggest to use the above method), and leads to several subtle bugs:
- Can no longer rearrange tabs in Tab Bar Controller as they disappear
- Can't set the Navigation title for "Second View" from Storyboard
- Editor > Embed in > Navigation Controller is greyed out for the Tab Bar Controller (as it is not a recommended practice), so you have to manually create it