网站建设资讯

NEWS

网站建设资讯

YourSecondiOSApp(1)—Introduce

Next

目前创新互联已为1000多家的企业提供了网站建设、域名、网页空间、绵阳服务器托管、企业网站设计、建阳网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

About Creating Your Second iOS App

关于创建你的第二个iOS App

Your Second iOS App: Storyboards describes how to use storyboards to create a navigation-based app. With the app, users can view details about each item in a master list and add new items to the list. The finished app looks something like this:

你的第二个iOS app:故事板 描述了如何使用故事板来创建一个基于导航的app。使用这个app,用户可以显示关于总列表中的每个项的细节内容,以及添加新的项到这个列表中。在app完成之后看起来是这样的:

After you complete the steps in this tutorial, you’ll know how to:

在你完成本教程的步骤之后,你将学习到如何:

Design a model layer that represents and manages an app’s data

设计一个表示和管理app的数据的模型层

Create new scenes and segues in a storyboard

在故事板中创建新的场景和连接。

Pass data to and retrieve it from a scene

从场景传递数据以及检索数据

To get the most from this tutorial, you should already have some familiarity with iOS app programming in general and the Objective-C language in particular. If you’ve never written an iOS app, readStart Developing iOS Apps Today (and go through the tutorial Your First iOS App) before you begin this tutorial.

想要从本教程中得到最大的收获,你应该已经熟悉一般的iOS app编程,尤其是Objective-C语言。如果你从没有写过iOS app,在你开始本教程之前先阅读Start Developing iOS Apps Today(并且完成Your First iOS App 教程)。

At a Glance

概览

Your Second iOS App: Storyboards builds on the knowledge you gained in Your First iOS App (which is part ofStart Developing iOS Apps Today): It introduces you to more of the powerful features that storyboards provide and also describes some ways in which you can take advantage of table views in an app.

Your Second iOS App: Storyboards是建立在你在Your First iOS App中获得的知识上的(它是Start Developing iOS Apps Today的一部分):它向你介绍更多故事板提供的强大的功能,以及描述了一些在app中使用表视图的方法。

Designing and Implementing a Model Layer

设计并实现模型层

A well-designed app defines a model layer that includes both the data objects that the app handles and the management of the data objects. Although the model layer in the tutorial app is very simple, designing and implementing it introduces you to concepts that you can apply to more complex apps.

一个良好设计的app应该定义一个模型层,这个模型层应该既包含app要处理的数据对象,也包含对于这些数据对象的管理。尽管本教程的app的模型层非常简单,但是通过设计和实现它而向你介绍的概念可以让你使用到更复杂的apps中去。

Relevant chapter(相关章节):“Designing the Model Layer”

Designing and Implementing the Master and Detail Scenes

设计和实现主场景和细节场景

The app in this tutorial is based on the master-detail format, in which users select an item in a master list to see details about the item in a secondary screen. Many iOS apps are based on the master-detail format, including Mail and Settings. This tutorial shows how easy it is to use storyboards to base an app on this format and to send data to the detail screen for display.

本教程中的app是基于主-从格式的,当用户在主列表中选择一个项的时候会在次级屏幕上看到关于这个项的细节。很多iOS app是基于主-从格式的,包括邮件和设置app。本教程展示如何使用故事板方便的实现基于这种格式的app以及向细节屏幕发送数据用来显示。

Relevant chapters(相关章节):“Designing the Master Scene” and“Displaying Information in the Detail Scene”

Creating a New Scene

创建新场景

Most of the Xcode templates place one or more scenes in the storyboard by default, but you can also add new scenes as needed. In this tutorial, you add a scene and embed it within a navigation controller so that you can offer users a way to enter new information to include in the master list.

在默认的情况下,大多数的Xcode模板在故事板中安置一个或多个场景,但你也可以在需要的时候自己添加新的场景。在本教程中,你将添加一个场景并且把它嵌入到一个导航控制器中,以便你能够提供给用户一个向主列表添加新信息的途径。

Relevant chapter(相关章节):“Enabling the Addition of New Items”

Solving Problems and Thinking About Your Next Steps

解决问题并思考你接下来的步骤

As you create the app in this tutorial, you might encounter problems that you don’t know how to solve. Your Second iOS App: Storyboards includes some problem-solving advice, in addition to complete code listings against which you can compare your code.

当你创建了本教程的app时,你或许会遇到你不知道如何解决的问题。Your Second iOS App: Storyboards包含一些问题解决建议,除了完成代码清单之外,你还能够比较你的代码。

There are many ways in which you can increase your knowledge of iOS app development. This tutorial suggests several ways to improve the app you create and to learn new skills.

提高你开发iOS app的知识有很多方法。本教程建议了几种用来改善你创建的app 的方法,并学习了新的技巧。

Relevant chapters(相关章节):“Troubleshooting,”“Code Listings,”“Next Steps”

See Also

还可以看

In addition to the documents suggested in“Next Steps,” there are many other resources that can help you develop great iOS apps:

除了文档在“Next Steps”中建议的,还有其他一些资源可以帮助你开发伟大的iOS apps:

To learn about the recommended approaches to designing the user interface and user experience of an iOS app, seeiOS Human Interface Guidelines.

想要学习关于使用推荐的方法设计用户界面以及iOS app的用户体验的内容,参看iOS Human Interface Guidelines.

For comprehensive guidance on creating a full-featured iOS app, seeiOS App Programming Guide.

想要得到一个创建全功能的iOS app的综合指导,参见iOS App Programming Guide.

To learn more about the many features of Xcode, see Xcode Overview.

想要学习更多关于更多Xcode功能的内容,参见Xcode Overview.

To learn about all the tasks you need to perform as you prepare to submit your app to the App Store, see App Distribution Guide.

想要学习关于发布你的app到App Store上的说有任务,参见App Distribution Guide.

Next

Copyright 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-10-16


网站标题:YourSecondiOSApp(1)—Introduce
文章分享:http://njwzjz.com/article/pgojej.html