Buy Learning Core Data for iOS by Tim Roadley at Bookstore UAE
close menu
Bookswagon
search
My Account
Home > Computer programming / software engineering > Macintosh programming > Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications(Learning)
Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications(Learning)

Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications(Learning)


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Get Started Fast with iOS 7 Core Data App Development
Covers iOS 7 and Xcode 5


This is the first Core Data book to fully reflect Apple’s latest platform innovations, including its dramatic  recent improvements to iCloud support. Hands-on from start to finish, it teaches you step-by-step as you create a modern data-driven iOS app using Storyboards, ARC, iOS 7, and Xcode 5.

Tim Roadley introduces new patterns and best practices designed to overcome the frustrations of Core Data development. One step at a time, you’ll build and extend your skills--even mastering advanced techniques such as complex model migration, deep copy, background processing, and integration with Dropbox, StackMob, and iCloud.

Downloadable versions of this book’s main project are provided with each chapter, so you can see exactly what your app project should look like--and get cookbook-style code for your own projects. Chapter exercises help you explore even further, whether you’re a self-learner or a student in an iOS development course.

If you’re an experienced iOS developer, this guide brings together all the skills, tools, code, and patterns you need to add powerful data management capabilities to any app--quickly, easily, and painlessly.

Coverage includes the following:

  • Understanding Core Data
  • Adding Core Data to an existing project
  • Designing, upgrading, and migrating data models (automatically and manually with progress indication)
  • Populating views with data, including table-views and picker-views
  • Preloading a “default data” persistent store from XML
  • Deep-copying from one persistent store to another
  • Performance tuning with Instruments, using large photos as the example
  • Background processing, using thumbnail generation as the example
  • Efficient search
  • Seamlessly backing up and restoring with Dropbox
  • Stable integration with iCloud--with full support for multiple accounts, seeding, and de-duplication
  • Web service integration with StackMob


Table of Contents:
Preface xv
Chapter 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
Chapter 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
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
Chapter 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
Chapter 4: Managed Object Model Expansion     71
Relationships     71
Delete Rules     77
Validation Errors     81
Entity Inheritance     86
Summary     90
Exercises     90
Chapter 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
Introducing PrepareTVC     105
Data     106
View     108
Interaction     114
Introducing ShopTVC     117
Data     117
View     118
Interaction     121
Summary     122
Exercises     122
Chapter 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
Chapter 7: Picker Views     159
Overview     159
Introducing CoreDataPickerTF     160
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
Chapter 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
Chapter 9: Deep Copy     215
Overview     215
Configuring a Source Stack     218
Configuring the Source Store     219
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
Chapter 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
Chapter 11: Background Processing     263
Background Save     263
Background Processing     268
Introducing Faulter     269
Introducing Thumbnailer     273
Summary     279
Exercises     279
Chapter 12: Search     281
Updating CoreDataTVC     282
Updating PrepareTVC     289
Summary     294
Exercises     294
Chapter 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
Chapter 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
Chapter 15: Taming iCloud     351
De-Duplication     351
Seeding     360
Developing with a Clean Slate     367
Configurations     369
Finishing Touches     370
Summary     371
Exercises     372
Chapter 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
Appendix A: Preparing Grocery Dude for Chapter 1     411
New Xcode Project     411
Storyboard Design     412
App Icons and Launch Images     415
Appendix 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

About the Author :

Tim Roadley is a senior analytics software consultant at Emite Pty Ltd. He is primarily focused on delivering business intelligence dashboards, currently for one of Australia’s major banks. Prior to Emite, Tim was Infrastructure Manager at Cuscal Pty Ltd, where he was heavily involved in designing and implementing a payments switch that drives 1,300+ ATMs throughout Australia. By night he is an avid iOS developer and tutorial writer, with several apps on the App Store, including Teamwork, iSoccer, and now Grocery Dude and Grocery Cloud. In his downtime, he enjoys spending time with his wonderful wife, Tracey, and two lovely children, Tyler and Taliah.


Best Sellers


Product Details
  • ISBN-13: 9780133373608
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Sub Title: A Hands-On Guide to Building Core Data Applications
  • ISBN-10: 0133373606
  • Publisher Date: 01 Nov 2013
  • Binding: Digital download
  • Series Title: Learning
  • Weight: 1 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications(Learning)
Pearson Education (US) -
Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications(Learning)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications(Learning)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    Your IP: 216.73.217.86 IN