Hide tab bar in NSTabViewController in storyboard
Asked Answered
B

1

15

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?

Badlands answered 13/5, 2016 at 22:0 Comment(2)
set NSTabView's tabViewType property to one of the NSNoTabs enum type. In IB it should be under the 'Style' drop down menu.Lyndalynde
@Lyndalynde That's not sufficient because he's using an NSTabViewController.Southeastwards
S
42

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

Southeastwards answered 14/5, 2016 at 4:23 Comment(2)
Perfectly explained!Badlands
my app have 3 tabs and 3 buttons, how to handle tab selection using buttons in tab less tabviewcontrollerPolyploid

© 2022 - 2024 — McMap. All rights reserved.