没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Version 2.0 (December 2016)
© 2016 Kugler, Eggert und Eidhof GbR
All Rights Reserved
For more books and articles visit us at http://objc.io
Email: mail@objc.io
Twitter: @objcio
Introduction
How This Book Approaches Core Data 9
A Note on Swift 11
Part 1
Core Data Basics
1 Hello Core Data
Core Data Architecture 16
Data Modeling 17
Setting Up the Stack 20
Showing the Data 22
Manipulating Data 30
Summary 36
Notes for Pre-iOS 10/macOS 10.12 37
2 Relationships
Adding More Entities 40
Subentities 43
Creating Relationships 46
Other Types of Relationships 48
Establishing Relationships 50
Relationships and Deletion 54
Adapting the User Interface 57
Summary 59
3 Data Types
Standard Data Types 61
Primitive Properties and Transient Attributes 63
Custom Data Types 64
Default Values and Optional Values 71
Summary 72
Part 2
Understanding Core Data
4 Accessing Data
Fetch Requests 76
Relationships 85
Other Ways to Retrieve Managed Objects 86
Memory Considerations 87
Summary 89
5 Changing and Saving Data
Change Tracking 92
Saving Changes 94
Batch Updates 99
Summary 101
6 Performance
Performance Characteristics of the Core Data Stack 104
Avoiding Fetch Requests 108
Optimizing Fetch Requests 116
Inserting and Changing Objects 123
How to Build Efficient Data Models 124
Strings and Text 128
Esoteric Tunables 128
Summary 128
Part 3
Concurrency and Syncing
7 Syncing with a Network Service
Organization and Setup 131
Syncing Architecture 133
Context Owner 134
Reacting to Local Changes 137
Reacting to Remote Changes 141
Change Processors 142
Deleting Local Objects 145
Groups and Saving Changes 146
Expanding the Sync Architecture 147
8 Working with Multiple Contexts
Concurrency Rules 152
Merging Changes 158
The Default Concurrent Setup 159
Setups with Multiple Coordinators 161
Setups with Nested Contexts 163
Complexity of Nested Contexts 167
Summary 172
9 Problems with Multiple Contexts
Save Conflicts and Merge Policies 175
Query Generations 181
Deleting Objects 183
Uniqueness Constraints 187
Summary 189
Part 4
Advanced Topics
10 Predicates
Simple Predicates 193
Creating Predicates in Code 195
Format Strings 195
Combining Predicates 199
Traversing Relationships 201
剩余270页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功