没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Core Data by Tutorials
By the raywenderlich.com Tutorial Team
Aaron Douglas, Saul Mora,
Matthew Morey, and Pietro Rea
Copyright © 2013 Razeware LLC.
All rights reserved. No part of this book or corresponding materials (such as
text, images, or source code) may be reproduced or distributed by any means
without prior written per- mission of the copyright owner.
This book and all corresponding materials (such as source code) are provided
on an "as is" basis, without warranty of any kind, express or implied, including
but not limited to the warranties of merchantability, fitness for a particular
purpose, and noninfringement. In no event shall the authors or copyright
holders be liable for any claim, damages or other liability, whether in action of
contract, tort or otherwise, arising from, out of or in connec- tion with the
software or the use or other dealings in the software.
All trademarks and registered trademarks appearing in this book are the
property of their respective owners.
Table of Contents: Overview
Introduction .............................................................................................. 9!
Chapter 1: Your First Core Data App ............................................. 15!
Chapter 2: NSManagedObject Subclasses .................................... 33!
Chapter 3: The Core Data Stack ...................................................... 58!
Chapter 4: Intermediate Fetching .................................................... 79!
Chapter 5: NSFetchedResultsController ........................................ 111!
Chapter 6: Versioning and Migration ........................................... 134!
Chapter 7: Syncing with iCloud ...................................................... 170!
Chapter 8: Unit Testing ..................................................................... 188!
Chapter 9: Measuring and Boosting Performance ...................... 204!
Chapter 10: Multiple Managed Object Contexts ....................... 236!
Conclusion ............................................................................................ 256!
Table of Contents: Extended
Introduction .............................................................................................. 9!
What you need ............................................................................................. 10!
Who this book is for ..................................................................................... 10!
How to use this book ..................................................................................... 11!
What’s in store ............................................................................................... 11!
Source code and forums .............................................................................. 12!
Updates ........................................................................................................... 12!
License ............................................................................................................. 13!
About the authors .......................................................................................... 13!
About the editors ........................................................................................... 14!
Chapter 1: Your First Core Data App ............................................. 15!
Getting started .............................................................................................. 15!
Modeling your data ..................................................................................... 23!
Saving to Core Data .................................................................................... 26!
Fetching from Core Data ............................................................................. 30!
Where to go from here? .............................................................................. 32!
Chapter 2: NSManagedObject Subclasses .................................... 33!
Getting started .............................................................................................. 33!
Modeling your data ..................................................................................... 36!
Storing non-standard data types in Core Data ...................................... 39!
Managed object subclasses ........................................................................ 40!
Propagating a managed context .............................................................. 44!
Data validation in Core Data ..................................................................... 53!
Tying everything up ...................................................................................... 56!
Where to go from here? .............................................................................. 57!
Chapter 3: The Core Data Stack ...................................................... 58!
Getting started .............................................................................................. 58!
The managed object model ........................................................................ 60!
The persistent store ....................................................................................... 60!
The persistent store coordinator ................................................................. 61!
The managed object context ...................................................................... 61!
Creating your stack object .......................................................................... 62!
Modeling your data ..................................................................................... 66!
Adding managed object subclasses .......................................................... 70!
A walk down persistence lane .................................................................... 71!
Deleting objects from Core Data ............................................................... 76!
Where to go from here? .............................................................................. 78!
Chapter 4: Intermediate Fetching .................................................... 79!
NSFetchRequest: the star of the show ....................................................... 79!
Introducing the Bubble Tea app ................................................................. 80!
Stored fetch requests .................................................................................... 82!
Fetching different result types .................................................................... 87!
Sorting fetched results ................................................................................ 103!
Asynchronous fetching ................................................................................ 105!
Batch updates: no fetching required ....................................................... 108!
Where to go from here? ............................................................................ 110!
Chapter 5: NSFetchedResultsController ........................................ 111!
Introducing the World Cup app ............................................................... 111!
It all begins with a fetch request... ........................................................... 113!
Grouping results into sections .................................................................... 119!
“Cache” the ball .......................................................................................... 123!
Monitoring changes ..................................................................................... 124!
剩余255页未读,继续阅读
___沈小峰
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页