Jump to ratings and reviews
Rate this book

Core Data by Tutorials: Updated for Swift 2.2: IOS 9 and Swift 2.2 Edition

Rate this book
Updated for Xcode 7.3 and Swift 2.2

Learn Core Data with Swift! Take control of your data in iOS apps using Core Data, through a series of high quality hands-on tutorials.

Start with with the basics like setting up your own Core Data Stack all the way to advanced topics like syncing with iCloud, migration, performance, multithreading, and more! By the end of this book, you'll have hands-on experience with Core Data and will be ready to use it in your own apps.

Who This Book Is For: This book is for intermediate iOS developers who already know the basics of iOS and Swift development but want to learn how to use Core Data to save data in their apps.

Topics Covered in Core Data by Tutorials: Your First Core Data App: You'll click File\New Project and write a Core Data app from scratch! NSManagedObject Subclasses: Learn how to create your own subclasses of NSManagedObject - the base data storage class in Core Data. The Core Data Stack: Learn how the main objects in Core Data work together, so you can move from the starter Xcode template to your own system. Intermediate Fetching: This chapter covers how to fetch data with Core Data - fetch requests, predicates, sorting and asynchronous fetching. NSFetchedResultsController: Learn how to make Core Data play nicely with table views using NSFetchedResultsController! Versioning and Migration: In this chapter, you'll learn how to migrate your user's data as they upgrade through different versions of your data model. Synchronize with iCloud: Learn how to make your apps synchronize across devices, using the power of iCloud! Unit Tests: In this chapter, you'll learn how to set up a test environment for Core Data and see examples of how to test your models. Measuring and Boosting Performance: Learn how to measure your app's performance with various Xcode tools and deal with slow spots in your code. Multiple Managed Object Contexts: Learn how multiple managed object contexts can improve performance and make for cleaner code.

The iOS Tutorial Team takes pride in making sure each tutorial we write holds to the highest standards of quality. We want our tutorials to be well written, easy to follow, and fun. And we don't want to just skim the surface of a subject - we want to really dig into it, so you can truly understand how it works and apply the knowledge directly in your own apps.

278 pages, Paperback

First published December 12, 2014

2 people are currently reading
23 people want to read

About the author

Aaron Douglas

47 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (29%)
4 stars
8 (47%)
3 stars
3 (17%)
2 stars
1 (5%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
Profile Image for grundoon.
623 reviews11 followers
January 2, 2018
Overall one of the (if not the) best and reasonably thorough introductions to Core Data – if you like the tutorials on the Ray Wenderlich website, you'll really like the book-length versions. Their style does however occasionally frustrate – in its use of code clarity for teaching mode, completely ignoring best practices, Swift-y patterns in a book with Swift 4 right there in the title, and refactoring as one builds; in failing to completely follow through on things such as MOC handling when batch operating directly on persistent stores (much less MOC synchronization in general), how to actually get that exported file from the sandbox to a useful place (since that is the whole point of doing so, no?), or when taking the time to mention NSFetchedResultsController can also drive collection views "with some changes" without also taking time to provide a simple snippet on the topic (this is "by Tutorials" after all). And then there are all the exceptionally oddly numbered lists that make one wonder if this edition was slapped together without so much as a single actual proofread.
110 reviews1 follower
October 10, 2016
Fantastic book. One thing that Tutorials really hits on the head is its simplicity and beginner-oriented style.

I made the mistake as a fairly novice programmer in picking up Core Data by objc.io to learn Core Data before picking up the one by Tutorials.

Let me say that objc.io's book is AMAZING and incredibly chock-full of good information and best practices but I should have gone nowhere near that book at the stage I was at. They utilize advanced Swift concepts like protocol extensions and generic classes everywhere and reading it at the time seemed completely alien to me. My one nit-pick is that the apps you work on throughout the book comes completely built and you examine it piece by piece as opposed to building it slowly.

On the other hand, this book by Tutorials so simple it's impossible not to understand the concepts being explained. Every concept is backed by an app that you work with from start to finish. They cover pretty much every important part of Core Data from setting up the stack, NSFetchedResultsController, iCloud, Unit Tests, and even utilizing multiple Managed Object Contexts—all essential to developers working with Core Data.

What this book by Tutorials lacks and objc.io's book has in spades are things like optimization and best practices. objc.io's book really gets into the nitty-gritty of how Core Data works at a low level and every little gotcha and trick that you should be aware of. It goes into very advanced things like multithreading and multicontext setups and the code examples in the book are elegant and clean.

My recommendation is to finish the book if you've never done Core Data before + you are fairly new to Swift/Programming. The book will hold your hand through every page so you never feel lost.

If programming is something you are fairly experienced with and it's only Core Data that baffles you, consider reading objc.io's book as it will show you everything you need to know in a very condensed manner.
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.