Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide tab bar in NSTabViewController in storyboard

Does anybody know how to hide the tabbar within a NSTabView? There are just iOS versions out there but I need a solution for OSX.

Here is my storyboard:

enter image description here

I want to hide the tabbar… Where do I have to do it and how do I have to do it?

like image 911
Tom el Safadi Avatar asked May 13 '16 22:05

Tom el Safadi


People also ask

How to hide tab bar in a view swift?

If you don't want that behavior, you should set hidesBottomBarWhenPushed to true where applicable. This will hide the tab bar along with any toolbars you had showing, but only when a view controller is pushed onto the navigation stack. This allows you to show the tab bar at first, then hide it when you need more room.

How do I hide the tab bar in Firefox?

Look for “Profile Directory” in the page. Click on “Open Directory”, and create “'chrome” folder inside, if there isn't one already. Now, the top tabs bar should be hidden. Optionally, hide the titlebar to reclaim some pixels, note that this will hide your window buttons.

What is tab bar controller in Swift?

What's A Tab Bar Controller? A tab bar controller, of class UITabBarController, is a container view controller. It typically organizes 3-5 view controllers in a group. The user of your app can switch between view controllers by tapping one of the tabs in the tab bar at the bottom of the screen.


1 Answers

You're using an NSTabViewController. You need to make two changes in your storyboard.

First, select the tab view controller and set its Style to “Unspecified”:

tab view controller style

Next, select the tab view under the tab view controller (it'll probably be named “Top Tab View”) and set its Style to “Tabless”:

tab view style

like image 144
rob mayoff Avatar answered Sep 29 '22 19:09

rob mayoff