NSTabViewController { @available(OSX 10.10, *) public enum TabStyle : Int { /// Uses an NSSegmentedControl case segmentedControlOnTop /// Uses an NSSegmentedControl to show the UI for the tabs. Separate UI, such as a NSSegmentedControl or NSPopupButton, can be easily bound to the TabViewController NSTabViewController 支持的样式有4种; 实现更多的样式,需要使用tabView的tabViewType枚举; NSTabViewController的view是NSView,它里面包含一个NSTabView和NSSegmentedControl 在NSTabViewController的非ToolBar样式时如果需要实现特殊的选项卡效果,需要自定义NSSegmentedControl.