成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Xcode 4.2新建工程模板詳解

移動開發 iOS
Xcode是進行iOS開發的必備工具,但是用它來進行開發還有一些讓人迷惑的地方,讓我們來看看Xcode 4.2新建工程中的模板到底有哪些,都能干些甚么。

在Xcode4.2中新建一個工程,有三個大類可選:

Application

 在這個類別下面,你可以看到下面8種可選類型

下面對這些工程一一說明:

1.Document-Based Application

工程缺省說明如下:

This template provides a starting point for a document-based application. It provides an interface to store documents locally or in iCloud.

這個就是iOS新增的一個重要功能--云計算的一個體現,你可以創建一個基于Master-Detail Application類型的工程,不過加入了一個文檔的概念,而且這些文檔可以無縫保存到云端。

我的試驗的結果是在當前情況下,在虛擬機上運行程序還不能保存到云端。

2.Master-Detail Application

工程缺省說明如下:

This template provides a starting point for a master-detail application. It provides a user interface configured with a navigation controller to display a list of items and also a split view on iPad.

很多有過一些開發經驗的程序員會發現現在為iPhone的Navigation(導航模式)和為iPad的Split(分割模式)的工程模板沒有了,其實這個地方就是這兩種工程的入口,如果你選擇是iPhone版的Master-Detail Application,其實際生成的就是Navigation(導航模式),如果選擇iPad,則為Split(分割模式)

3.OpenGL Game

工程缺省說明如下:

This template provides a starting point for an OpenGL ES-based game. It provides a view into which you render your OpenGL ES scene, and a timer to allow you to animate the view.

這個是生成一個基于OpenGL的工程,值得說明的是,iOS已全面支持OpenGLES 2.0,并且使用shader編程實現其中的功能。

4.Page-Based Application

工程缺省說明如下:

This template provides a starting point for a page-based application that uses a page view controller.

這個是iOS5引入的一個新的類,page view controller,其翻頁效果是基于OpenGLES實現的。

5.Single View Application

工程缺省說明如下:

This template provides a starting point for an application that uses a single view. It provides a view controller to manage the view, and a storyboard or nib file that contains the view.

這個就是大家很熟悉的View-Based Application,沒啥好說的。

6.Tabbed Application

工程缺省說明如下:

This template provides a starting point for an application that uses a tab bar. It provides a user interface configured with a tab bar controller, and view controllers for the tab bar items.

這個就是大家熟悉的Tab Bar Application,值得一提的就是,現在控制Tab bar內容及其相關View controller都是使用代碼來實現的。Tab bar從一開始就可以使用代碼控制,不過大部分時候可以通過IB來定義,在XCode4.0之前和4.0中,IB在這個地方的使用方式不同。現在終于要放棄使用IB編輯了。

7.Utility Application

工程缺省說明如下:

This template provides a starting point for a utility application that has a main view and an alternate view. For iPhone, it sets up an Info button to flip the main view to the alternate view. For iPad, it sets up an Info bar button that shows the alternate view in a popover.

這個***新增的就是支持iPad了,而且很少用到這個模板。

8.Empty Application

工程缺省說明如下:

This template provides a starting point for any application. It provides just an application delegate and a window.

這個就是原來的Window-Based Application.

在另外兩個里面,一個是建一個靜態類庫的工程,一個創建一個完全空的工程。因此在此不再描述。

責任編輯:徐川 來源: OSChina
相關推薦

2011-07-28 14:55:21

Xcode 模板

2011-07-20 10:59:46

2011-07-20 13:50:03

XCode 模板

2011-08-09 15:33:22

Xcode 4.2ARC

2015-08-21 09:43:15

xcode修改注釋模板

2011-07-07 09:20:30

Xcode

2023-02-08 18:08:16

2011-07-28 14:31:55

Xcode 調試 異常

2011-07-19 15:44:18

Xcode 卸載

2011-07-20 16:59:07

2011-08-08 17:31:30

Xcode 工程

2011-07-26 14:44:53

調試 Xcode

2011-07-29 13:40:00

Xcode iOS 4.2 iPhone

2011-10-31 14:44:49

2011-03-18 08:39:28

iOS 4.2 SDKiOS SDK

2011-08-04 18:09:32

Xcode 技巧 文檔

2011-07-22 18:41:11

Xcode 文檔 腳本

2011-08-01 16:24:04

XCode CodeTimer 測試

2011-08-11 13:10:34

XcodeSVN

2013-04-08 10:27:59

iOSXcode制作靜態庫
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 亚洲免费精品 | 五月激情婷婷网 | 欧美三区在线观看 | 综合精品久久久 | 一区二区三区在线免费观看 | 一区二区av | 欧美精品成人一区二区三区四区 | 亚洲码欧美码一区二区三区 | 国产精品夜夜夜一区二区三区尤 | 亚洲成人一区二区三区 | 国产91在线 | 亚洲 | 男女搞网站 | 午夜av在线 | 国产伦精品一区二区三区照片91 | 中文字幕一区二区三区不卡 | 亚洲免费在线 | 午夜免费观看体验区 | 久久久免费| 岛国在线免费观看 | 国产福利资源在线 | 亚欧洲精品在线视频免费观看 | 日韩av在线一区二区 | 成人精品| 欧美啪啪网站 | 国外激情av| 欧美黑人国产人伦爽爽爽 | 日韩一区三区 | 一久久久 | 日韩不卡在线 | 久久躁日日躁aaaaxxxx | 精品欧美一区二区三区 | 亚洲成人观看 | 国产一区二区三区四区五区加勒比 | 天天干国产 | 日韩国产黄色片 | 精品一区二区三区四区 | 欧美日韩综合精品 | 热久色| 国产精品久久久久久久久免费 | 一级做a爰片性色毛片 | 日韩精品在线一区 |