简体   繁体   English

如何在 xcode 13.2.1 中创建主从应用程序?

[英]How to create Master Detail app in xcode 13.2.1?

As shown in image there is no option for Master detail app which was available in older version of xcode...So question is it's name is changed or it is deprecated and not available in latest xcode versions?如图所示,在旧版本的 xcode 中没有可用的 Master detail 应用程序的选项......所以问题是它的名称已更改或已弃用且在最新的 xcode 版本中不可用? (one in the dark mode is latest xcode version while the other in light mode is older xcode) (暗模式下的一个是最新的 xcode 版本,而亮模式下的另一个是较旧的 xcode)

/

In fact this was changed even earlier - since XCode 12. For now all previously available templates like Master-Detail, Single View, Tabbed application are represented by single template - App .事实上,这在更早的时候就已经改变了——从 XCode 12 开始。现在所有以前可用的模板,如 Master-Detail、Single View、Tabbed 应用程序都由单个模板 - App表示。

For now you can (and should) create application flows on your own.现在,您可以(并且应该)自己创建应用程序流。 This was done because Apple introduced new components with an easy API that make templates useless.之所以这样做,是因为 Apple 推出了新组件,其中包含一个简单的 API,使模板变得无用。

Eg specifically for your case - since iOS 14 you can use UISplitViewController for creating master-details apps with very simple API - you can do it either programatically or via storyboards.例如,专门针对您的情况 - 自 iOS 14 起,您可以使用UISplitViewController使用非常简单的 API 创建主详细信息应用程序 - 您可以通过编程方式或通过情节提要来完成。 If you want to have master-detail app with lower deployment target where UISplitViewController is not available - you have to use approach from Master-detail template using separate view controllers and segues.如果您希望在 UISplitViewController 不可用的情况下拥有具有较低部署目标的主从应用程序 - 您必须使用主从模板中的方法,使用单独的视图控制器和 segues。

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

相关问题 具有xcode的分层主从细节应用程序 - Hierarchical master-detail app with xcode ios / xcode / coredata:如何在“主详细信息”设置中刷新详细信息视图 - ios/xcode/coredata: How to refresh detail view in Master Detail setup 如何在Xcode中使用主详细信息视图创建自定义原型单元? - How do you create a custom prototype cell with master detail view in Xcode? 在Xcode 4.2中为iPad创建一个简单的Master Detail(Split View)应用程序 - creating a simple Master Detail (Split View) app for iPad in Xcode 4.2 通用应用-主细节 - Universal app - Master Detail Master Detail应用 - Master Detail app 如何在主细节应用程序中使细节视图可滚动 - How to make detail view scrollable in master detail app 如何将reloadData添加到Xcode默认的Master-Detail Tableview应用程序 - How to add reloadData to Xcode default Master-Detail Tableview application 如何在XCode中更改iOS的Master-Detail应用程序的结构? - How to change structure of Master-Detail application for iOS in XCode? 使用Xcode故事板创建主-主视图,其中“主视图”视图是“标签栏”到三个不同的视图 - Using Xcode Storyboard to create Master-Detail views where the Detail view is Tab Bar to three different views
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM