Next
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, read Start 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 of Start 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, see iOS Human Interface Guidelines.
想要學習關于使用推薦的方法設計用戶界面以及iOS app的用戶體驗的內容,參看 iOS Human Interface Guidelines.
For comprehensive guidance on creating a full-featured iOS app, see iOS 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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。