助手模型如何在 swift 中工作? [英] How assistant model works in swift?

查看:33
本文介绍了助手模型如何在 swift 中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了一个名为 StaticCellTableViewController 的新类.现在我想将 Main.storyboard 中的一些元素连接到它.但是我不能并排放置这两个窗口.

I build a new class called StaticCellTableViewController. Now I want to connect some element from the Main.storyboard to it. But I can't have these two windows side by side.

我转到 StaticCellTableViewController 并单击助手.它给了我两个 StaticCellTableViewController 窗口.

I go the StaticCellTableViewController and click assistant. It gives me two StaticCellTableViewController windows.

我尝试在 Main.storyboard 窗口中单击助手.它给了我另一个这样的课程.

I try to click assistant in the Main.storyboard window. It gives me another class like this.

但我希望 Main.storyboard 窗口和 StaticCellTableViewController 类并排放置,以便我可以将元素拖到它上面.我该怎么做?

But I want the Main.storyboard window and the StaticCellTableViewController class side by side so I can drag elements to it. How can I do that?

推荐答案

您不再需要 Assistant.不要使用它.编辑器窗格现在可以包含任何内容.

You do not need Assistant any more. Don’t use it. Editor panes can now contain anything.

所以打开两个普通的编辑器窗格.在一个窗格中单击.在导航器中单击您的视图控制器.在另一个窗格中单击.在导航器中单击您的故事板.完毕.

So open two normal editor panes. Click in one pane. Click your view controller in the navigator. Click in the other pane. Click your storyboard in the navigator. Done.

这篇关于助手模型如何在 swift 中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆