Search code examples
macoscocoanstabviewnstabviewcontroller

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?


Solution

  • 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