楼主: 飞天玄舞6
946 1

[数据挖掘理论与案例] 【独家发布】Learning Core Data for iOS [推广有奖]

  • 3关注
  • 31粉丝

VIP1

学科带头人

12%

(VIP/贵宾)九级

88%

TA的文库  其他...

综合文库

威望
0
论坛币
154108 个
通用积分
4222.8995
学术水平
128 点
热心指数
148 点
信用等级
102 点
经验
76621 点
帖子
1502
精华
0
在线时间
1511 小时
注册时间
2013-12-2
最后登录
2024-9-29

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Learning Core Data for iOS
QQ截图20170103121116.png
Contents at a Glance
Preface xv
1 Your First Core Data Application 1
2 Managed Object Model Basics 19
3 Managed Object Model Migration 45
4 Managed Object Model Expansion 71
5 Table Views 91
6 Views 125
7 Picker Views 159
8 Preloading Data 189
9 Deep Copy 215
10 Performance 239
11 Background Processing 263
12 Search 281
13 Back Up and Restore with Dropbox 297
14 iCloud 331
15 Taming iCloud 351
16 Web Service Integration 379
A Preparing Grocery Dude for Chapter 1 411
B Preparing Grocery Cloud for Chapter 16 417
Index 425
Table of Contents
Preface xv
1 Your First Core Data Application 1
What Is Core Data? 1
Persistent Store Coordinator 2
Managed Object Model 4
Managed Object Context 4
When to Use Core Data 5
Introducing Grocery Dude 5
Adding Core Data to an Existing Application 6
Introducing Core Data Helper 7
Core Data Helper Implementation 9
Files 9
Paths 10
Setup 11
Saving 14
Summary 16
Exercises 16
2 Managed Object Model Basics 19
What Is a Managed Object Model? 19
Adding a Managed Object Model 20
Entities 20
Attributes 22
Integer 16/32/64 23
Float and Double 24
Decimal 25
String 25
Boolean 25
Date 25
Binary Data 26
Transformable 26
Attribute Settings 28
Subclassing NSManagedObject 29
viii Contents
Scalar Properties for Primitive Data Types 31
Snippet Demo Method 31
Creating a Managed Object 32
Backend SQL Visibility 33
Fetching Managed Objects 36
Fetch Request Sorting 38
Fetch Request Filtering 39
Fetch Request Templates 40
Deleting Managed Objects 42
Summary 43
Exercises 43
3 Managed Object Model Migration 45
Changing a Managed Object Model 45
Adding a Model Version 47
Lightweight Migration 48
Default Migration 52
Migration Manager 57
Summary 69
Exercises 69
4 Managed Object Model Expansion 71
Relationships 71
Delete Rules 77
Validation Errors 81
Entity Inheritance 86
Summary 90
Exercises 90
5 Table Views 91
Table Views 101 91
Core Data Table Views 93
Introducing CoreDataTVC 93
Fetching 95
DATASOURCE: UITableView 96
DELEGATE: NSFetchedResultsController 98
AppDelegate’s CoreDataHelper Instance 104
Contents ix
Introducing PrepareTVC 105
Data 106
View 108
Interaction 114
Introducing ShopTVC 117
Data 117
View 118
Interaction 121
Summary 122
Exercises 122
6 Views 125
Overview 125
The Target View Hierarchy 126
Introducing ItemVC 127
Keeping Reference to a Selected Item 128
Passing a Selected Item to ItemVC 128
Configuring the Scroll View and Text Fields 129
ItemVC Implementation 134
Interaction 134
DELEGATE: UITextField 136
View 137
Data 139
Units, Home Locations, and Shop Locations 143
Adding and Editing Units 145
Implementing UnitsTVC 147
Implementing UnitVC 149
Segue from UnitsTVC to UnitVC 153
Adding and Editing Home or Shop Locations 154
Configuring the Home Location Views 154
Configuring the Shop Location Views 156
Summary 158
Exercises 158
7 Picker Views 159
Overview 159
Introducing CoreDataPickerTF 160
x Contents
DELEGATE+DATASOURCE: UIPickerView 162
Interaction 164
Data 165
View 165
Introducing UnitPickerTF 168
Creating the Unit Picker 170
Connecting the Unit Picker 171
Configuring ItemVC for the Unit Picker 171
Introducing LocationAtHomePickerTF 176
Introducing LocationAtShopPickerTF 178
Creating the Location Pickers 179
Connecting the Location Pickers 180
Configuring ItemVC for the Location Pickers 181
Picker-Avoiding Text Field 186
Summary 188
Exercises 188
8 Preloading Data 189
Default Data 189
Is an Import Required? 190
Importing from XML 193
Creating an Import Context 196
Preventing Duplicate Default Data 197
Triggering a Default Data Import 198
Introducing CoreDataImporter 200
Selecting Unique Attributes 205
Mapping XML Data to Entity Attributes 206
Importing from a Persistent Store 209
Using the Default Data Store as the
Initial Store 210
Summary 213
Exercises 214
9 Deep Copy 215
Overview 215
Configuring a Source Stack 218
Configuring the Source Store 219
Contents xi
Enhancing CoreDataImporter 221
Object Info 221
Array For Entity 222
Copy Unique Object 223
Establish To-One Relationship 224
Establish To-Many Relationship 226
Establish Ordered To-Many Relationship 227
Copy Relationships 228
Deep Copy Entities 230
Triggering a Deep Copy 232
Summary 236
Exercises 236
10 Performance 239
Identifying Performance Issues 239
Implementing the Camera 240
Generating Test Data 245
Measuring Performance with SQLDebug 250
Measuring Performance with Instruments 251
Improving Performance 254
Clean Up 261
Summary 262
Exercises 262
11 Background Processing 263
Background Save 263
Background Processing 268
Introducing Faulter 269
Introducing Thumbnailer 273
Summary 279
Exercises 279
12 Search 281
Updating CoreDataTVC 282
Updating PrepareTVC 289
Summary 294
Exercises 294
xii Contents
13 Back Up and Restore with Dropbox 297
Dropbox Integration 298
Supporting Frameworks 299
Linking to Dropbox 300
Introducing DropboxHelper 302
Introducing DropboxTVC 304
Preparing CoreDataHelper 307
Building DropboxHelper 308
Local File Management 308
Dropbox File Management 310
Backup & Restore 312
Building DropboxTVC 316
Creating Backups 319
Displaying Backups 322
Restore 324
Summary 328
Exercises 328
14 iCloud 331
Overview 331
Enabling iCloud 333
Updating CoreDataHelper for iCloud 334
The iCloud Store 335
iCloud Notifications 337
The Debug Navigator 341
Disabling iCloud 342
Summary 348
Exercises 348
15 Taming iCloud 351
De-Duplication 351
Seeding 360
Developing with a Clean Slate 367
Configurations 369
Finishing Touches 370
Summary 371
Exercises 372
Contents xiii
16 Web Service Integration 379
Introducing StackMob 379
The StackMob SDK 381
Creating a StackMob Application 382
Managed Object Model Preparation 383
Configuring a StackMob Client 385
Saving 387
Underlying Changes 389
Automatic Schema Generation 390
Schema Permissions 393
Authentication 394
Securing the User Class 396
Introducing LoginVC 397
Maintaining Responsiveness 406
Summary 408
Exercises 409
A Preparing Grocery Dude for Chapter 1 411
New Xcode Project 411
Storyboard Design 412
App Icons and Launch Images 415
B Preparing Grocery Cloud for Chapter 16 417
Renaming Grocery Dude 417
Repointing File Paths 418
Renaming Groups and Tests 419
Renaming the Scheme 420
Updating the Artwork 421
Disabling Camera and Image Support 421
Workaround: Section Name Key Path Issue 422
Summary 423
Index 425
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Learning earning Learn Data ning iCloud Object

Learning Core Data for iOS.pdf

7.93 MB

需要: 5 个论坛币  [购买]

本帖被以下文库推荐

strive for the best, prepare for the worst.
沙发
franky_sas 发表于 2017-1-3 22:05:10 |只看作者 |坛友微信交流群

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-11-6 09:52