惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
The Cloudflare Blog
量子位
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
D
DataBreaches.Net
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 聂微东
有赞技术团队
有赞技术团队
A
About on SuperTechFans

博客园 - 胖胖安

Xamarin.Android 的 Google 登入 Xamarin.iOS 的 Google 登入 Xamarin.Android 的照相機使用 Xamarin.iOS 照相機功能的使用 (1) :最簡單的做法 Xamarin.iOS 的鍵盤控制 (AutoLayout 與 新的 Keyboard 事件 ) Xamarin.Android 控制鍵盤縮放 Xamarin 環境建置–Xamarin Agent install rvm iOS : TableView MultiSelect 兩個 System.IO.FileInfo 的 Extension Method SQL Server 2008 Resize LDF IIS 7 站點下,ASP.NET 3.5 與 4.0 的並存問題 jQuery AutoComplete Parameters Tips : SQL Server 2008 "saving changes is not permitted." 的解決辦法 - 胖胖安 Section 3 : 程式進入點 Section 2 : 專案結構 iPhone 開發前的準備工作 IIS 7 上 设定ASP.NET 时应注意事项 DBML 在Beta2與正式版間差異 - 胖胖安 - 博客园
Section 1 : 使用 XCode 建立一個新專案
胖胖安 · 2009-07-16 · via 博客园 - 胖胖安

選擇專案類型

開啟 XCode,在選單列選取 File –> New Project 後。可以看到一個視窗
01

這邊可以看到預設有六種不同的專案類型
其實主要的區別是在各自引入的標頭檔和預設的一些檔案或資源不同
完全可以事後改掉。所以不要太緊張,不是根本的分歧。
可是不需要虐待自己,按視窗下面的說明選擇一個適合的類型即可。
若是初學者,建議直接都開開看,比較一下這六者的不同。

在以後的例子中,我們選擇Navigation-based Application 進行說明。
為了簡化例子,先不勾選 Core Data,其間的差別不過是下列物件,所以先不使用。

    NSManagedObjectModel *managedObjectModel;

    NSManagedObjectContext *managedObjectContext;    

    NSPersistentStoreCoordinator *persistentStoreCoordinator;