Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在快速为 mac OSX 编写一个应用程序,我想清楚地分离代码,所以我正在寻找一种方法来为 NSTabView 中的每个 NSTabViewItem 提供一个视图控制器,而不使用选项卡视图控制器。是否可以 ?
最后,我找到了解决方案。使用“容器视图”可以做到这一点。我在视图中放置了一个容器视图。我创建了一个新的视图控制器。最后,我用 Ctrl-Drag 从容器视图链接到新的视图控制器并选择“嵌入”。本教程中的更多信息