天天看點

《Core Data應用開發實踐指南》一導讀

《Core Data應用開發實踐指南》一導讀

每天都有無數apple裝置運作着依賴于core data的應用程式。這使得core data成了一個成熟、穩定且非常快速的平台,以供應用程式通路其資料。core data本身并不是資料庫,它其實是一個擁有諸多功能的架構,而其中一項功能就是把應用程式同資料庫之間的互動過程自動化。有了它之後,就不用再編寫sql代碼了,而是可以改用objective-c對象來做。這樣一來,既能享受到關系型資料庫的好處,又無須在objective-c代碼中編寫、測試并優化sql查詢語句。core data會在幕後自動生成sql代碼,而apple公司的專業技術人員已經對這種sql代碼做了多年的改良與優化。使用core data不僅能縮短應用程式開發時間,而且還能顯著減少開發者所要編寫的代碼量。

<a href="https://yq.aliyun.com/articles/117605">第1章初次嘗試core data應用程式</a>

<a href="https://yq.aliyun.com/articles/117610">1.1 core data是什麼</a>

<a href="https://yq.aliyun.com/articles/117613">1.2 core data的适用場合</a>

<a href="https://yq.aliyun.com/articles/117614">1.3 建立grocery dude項目</a>

<a href="https://yq.aliyun.com/articles/117622">1.4 為現有的應用程式添加core data支援</a>

<a href="https://yq.aliyun.com/articles/117626">1.5 小結</a>

<a href="https://yq.aliyun.com/articles/117629">1.6 習題</a>

<a href="https://yq.aliyun.com/articles/117631">第2章托管對象模型的基礎知識</a>

<a href="https://yq.aliyun.com/articles/117634">2.1 托管對象模型是什麼</a>

<a href="https://yq.aliyun.com/articles/117636">2.2 添加托管對象模型</a>

<a href="https://yq.aliyun.com/articles/117639">2.3 實體</a>

<a href="https://yq.aliyun.com/articles/117641">2.4 屬性</a>

<a href="https://yq.aliyun.com/articles/117651">2.5 integer 16、integer 32與integer 64</a>

<a href="https://yq.aliyun.com/articles/117657">2.6 單精度浮點數與雙精度浮點數</a>

<a href="https://yq.aliyun.com/articles/117660">2.7 屬性的各種設定選項</a>

<a href="https://yq.aliyun.com/articles/117661">2.8 建立nsmanagedobject的子類</a>

<a href="https://yq.aliyun.com/articles/117664">2.9 scalar properties for primitive data types選項</a>

<a href="https://yq.aliyun.com/articles/117666">2.10 代碼片段:demo方法</a>

<a href="https://yq.aliyun.com/articles/117671">2.11 建立托管對象</a>

<a href="https://yq.aliyun.com/articles/117673">2.12 後端sql的可見性</a>

<a href="https://yq.aliyun.com/articles/117679">2.13 擷取托管對象</a>

<a href="https://yq.aliyun.com/articles/117684">2.14 删除托管對象</a>

<a href="https://yq.aliyun.com/articles/117686">2.15 小結</a>

<a href="https://yq.aliyun.com/articles/117692">2.16 習題</a>

<a href="https://yq.aliyun.com/articles/117695">第3章托管對象模型的遷移</a>

<a href="https://yq.aliyun.com/articles/117725">3.1 修改托管對象模型</a>

<a href="https://yq.aliyun.com/articles/117730">3.2 添加模型版本</a>

<a href="https://yq.aliyun.com/articles/117739">3.3 輕量級的遷移方式</a>

<a href="https://yq.aliyun.com/articles/117747">3.4 預設的遷移方式</a>

<a href="https://yq.aliyun.com/articles/117764">3.5 通過遷移管理器來遷移資料</a>

<a href="https://yq.aliyun.com/articles/117765">3.6 小結</a>

<a href="https://yq.aliyun.com/articles/117766">3.7 習題</a>

第4章托管對象模型的擴充

4.1 關系

4.2 delete規則

4.3 資料驗證錯誤

4.4 實體繼承

4.5 小結

4.6 習題

第5章表格視圖

5.1 表格視圖基礎

5.2 由core data所驅動的表格視圖

5.3 建立coredatatvc

5.4 delegate:nsfetchedresultscontroller

5.5 appdelegate的coredatahelper執行個體

5.6 建立preparetvc

5.7 建立shoptvc

5.8 小結

5.9 習題