不同类型的 Xcode 应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9387073/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:23:45  来源:igfitidea点击:

Different types of Xcode applications

xcodexcode4.2

提问by codeinprogress

I am new to Xcode development. When I first opened Xcode 4.2, there were different types of applications we can build (Master Detail, Page Based, Single View, Tabbed, Utility, Empty Application) using Xcode.

我是 Xcode 开发的新手。当我第一次打开 Xcode 4.2 时,我们可以使用 Xcode 构建不同类型的应用程序(Master Detail、Page Based、Single View、Tabbed、Utility、Empty Application)。

I am somewhat confused about how different they are from each other. I did some search but so far I am not able to understand their basic difference. How would I know which application to select to start developing my own application.

我对它们彼此之间的不同感到有些困惑。我做了一些搜索,但到目前为止我无法理解它们的基本区别。我如何知道选择哪个应用程序来开始开发我自己的应用程序。

If someone can explain their difference and usage to me in layman terms.

如果有人可以用外行的术语向我解释它们的区别和用法。

Thanks.

谢谢。

回答by Laksh Gandikota

Those are different starter template's provided along with Xcode. You may decide not to you use any of the templates and go with an empty project.

这些是与 Xcode 一起提供的不同的入门模板。您可以决定不使用任何模板并使用空项目。

Below is the brief overview of each of the templates.

以下是每个模板的简要概述。

Master Detail - Template which has pre-created Parent-child views with navigation controller, typically for iPad for different orientation.

Master Detail - 带有导航控制器的预创建父子视图的模板,通常用于不同方向的 iPad。

Page based - Similar to iBooks app.

基于页面 - 类似于 iBooks 应用程序。

Single View - Starter template with a single view. you can add multiple view whenever required.

单一视图 - 具有单一视图的入门模板。您可以在需要时添加多个视图。

Tabbed application - View controller with tab bar at the bottom of the screen.

选项卡式应用程序 - 在屏幕底部带有选项卡栏的视图控制器。

I hope you got the idea. In my opinion, as a starter, you should go with creating a single view based application.

我希望你有这个想法。在我看来,作为初学者,您应该创建一个基于单一视图的应用程序。

Good luck.

祝你好运。