简体   繁体   English

macOS中的多页应用程序

[英]Multiple page application in macOS

I am trying to make an application with four buttons on the side (ie Home, Create, whatever). 我试图制作一个侧面有四个按钮的应用程序(即Home,Create或其他)。 On a button click, it would load up some new content - perhaps using a container? 单击按钮,它会加载一些新内容-也许使用容器?

I can't seem to get things to connect on a storyboard though. 我似乎无法将所有内容连接到情节提要上。 I guess the question boils down to this - how can I use buttons to either segue to a new page or load new content in a container? 我想这个问题可以归结为-我该如何使用按钮来选择一个新页面或在容器中加载新内容?

Have a look at NSSplitViewController. 看看NSSplitViewController。 Use one vc to be the side menu and the other as the content. 使用一个vc作为侧面菜单,使用另一个作为内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM