如何在 Xcode 13.2.1 中创建视图控制器?

发布于 2025-01-12 19:32:08 字数 620 浏览 3 评论 0原文

我刚开始学习iOS开发,遇到添加outlet变量的问题。当我观看有关使用 Xcode 制作项目的视频时,我发现有一个选项可以选择像 swiftui 这样的界面。但在 Xcode 13.2.1 中我找不到该选项,并且在制作项目后,没有故事板和视图控制器。据我所知,当项目刚刚创建时,导航器中肯定有应用程序委托、场景委托、故事板、视图控制器等几个文件。

请让我知道如何将视图控制器添加到导航器。 我找不到需要将标签拖入的区域。 为了提供更多信息,我发布了有关它的图片。 谢谢你!

项目制作中的接口选择

项目制作中无界面选择

文件列表在导航器照常

创建项目时导航器中的文件列表

I just started to learn iOS development and I got a problem to add outlet variable. As I watched video about making project with Xcode, I found that there was an option to select interface like swiftui. But in Xcode 13.2.1 I couldn't find that option and after making project, there wasn't storyboard and view controller. as far as I know, when the project is just created, there must be several files like app delegate, scene delegate, storyboard, view controller in navigator.

plz let me know how to add view controller to navigator.
I can't find the area that label is needed to be dragged into.
To give further information I posted pictures together about it.
thank you!

interface selection in project production

no interface selection in project production

file lists in navigator as usual

file lists in navigator when I created the project

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文