如何在Xcode 14.2.3中获取故事板界面设置?

huangapple go评论65阅读模式
英文:

how to get the storyboard interface setting in Xcode 14.2.3?

问题

我一直想使用Xcode 14.2.3创建一个小项目,但找不到用户界面设置,以便添加故事板设置并完成我的项目。
请帮忙。

我尝试在Xcode上创建一个新项目并添加故事板设置,但与旧版本的Xcode不同,我找不到该选项。

英文:

I have been wanting to create a small project using Xcode 14.2.3 but can't find the user interface setting so that I can add the storyboard setting and complete my project.
Please help

I tried to make a new project on Xcode and add the storyboard setting but couldn't get that option unlike the older version of Xcode used to provide

答案1

得分: 0

当您在Xcode 14中创建一个新项目时,会打开以下对话框:

请注意对话框顶部的类别:Multiplatform、iOS、macOS、watchOS等等。

如果您在对话框顶部点击Multiplatform并选择App或Document App项目模板,您将创建一个SwiftUI项目。SwiftUI项目不使用故事板,因此不会有用于选择用户界面的SwiftUI或故事板的Interface菜单。

要在项目中使用故事板,请点击对话框顶部的iOS(或Mac),就像屏幕截图中一样,选择App或Document App项目模板,然后点击“下一步”按钮。这样做后,您将看到一个Interface菜单,您可以在其中选择使用故事板。

英文:

When you create a new project in Xcode 14, the following sheet opens:

如何在Xcode 14.2.3中获取故事板界面设置?

Notice the categories at the top of the sheet: Multiplatform, iOS, macOS, watchOS, and so on.

If you click Multiplatform at the top of the sheet and choose the App or Document App project templates, you create a SwiftUI project. SwiftUI projects do not use storyboards so there will be no Interface menu to choose SwiftUI or storyboard for the user interface.

To use a storyboard for your project, click iOS (or Mac) at the top of the sheet, like in the screenshot, choose the App or Document App project template, and click the Next button. When you do that, you will see an Interface menu, where you can choose to use a storyboard.

huangapple
  • 本文由 发表于 2023年7月3日 15:03:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/76602521.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定