ShapeShapeGrouppointGroupchapter-listShapeShape Copy 12ShapeShape Copy 3ShapeGroupShapedropdowneditoreditorCombined ShapegridShape Copy 4Shape Copy 7ShapelanguagelanguageShapemegaphonepaperbackShapeplatformnoun_419259-2 copyplay-iconBS-Question-Rounded-Circlequotesnoun_610406stacked-books-1stacked-books-2Shape Copy 5Combined ShapeGroup
Core Data by Tutorials book cover

Core Data by Tutorials

$54.99
  • Platform iOS 10
  • Language Swift 3
  • Editor Xcode 8.1

Take control of your data in iOS apps using Core Data, Apple’s powerful object graph and persistence framework.

Developer Guide

Intermediate

For intermediate ios developers
Core Data by Tutorials book cover

Learn Core Data with Swift!

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

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!

We also recommend

Table of Contents

1.

Your First Core Data App

You’ll click File\New Project and write a Core Data app from scratch! This chapter covers the basics of setting up your data model and then adding and fetching records.

2.

NSManagedObject Subclasses

NSManagedObject is the base data storage class of your Core Data object graphs. This chapter will teach you how you customize your own managed object subclasses to store and validate data.

3.

The Core Data Stack

Under the hood, Core Data is made up of many parts working together. In this chapter, you’ll learn about how these parts fit together, and move away from the starter Xcode template to build your own customizable system.

4.

Intermediate Fetching

Your apps will fetch data all the time, and Core Data offers many options for getting the data to you efficiently. This chapter covers more advanced fetch requests, predicates, sorting and asynchronous fetching.

5.

NSFetchedResultsController

Table views are at the core of many iOS apps, and Apple wants to make Core Data play nicely with them! In this chapter, you’ll learn how NSFetchedResultsController can save you time and code when your table views are backed by data from Core Data.

6.

Versioning and Migration

As you update and enhance your app, its data model will almost certainly need to change. In this chapter, you’ll learn how to create multiple versions of your data model and then migrate your users forward so they can keep their existing data as they upgrade.

7.

Unit Tests

Testing is an important part of the development process, and you shouldn’t leave Core Data out of those tests! In this chapter, you’ll learn how to set up a separate test environment for Core Data and see examples of how to test your models.

8.

Measuring and Boosting Performance

No one ever complained that an app was too fast, so it’s important to be vigilant about tracking performance. In this chapter, you’ll learn how to measure your app’s performance with various Xcode tools and then pick up some tips for dealing with slow spots in your code.

9.

Multiple Managed Object Contexts

In this final chapter, you’ll expand the usual Core Data stack to include multiple managed object contexts. You’ll learn how this can improve perceived performance and help make your app architecture less monolithic and more compartmentalized.

Meet the authors

Aaron Douglas Aaron Douglas RW Team Member
Saul Mora Saul Mora RW Team Member
Matthew Morey Matthew Morey RW Team Member
Pietro Rea Pietro Rea RW Team Member

Customer reviews

'Core Data by Tutorials'

The book reads smoothly, as if you have your own personal programming teacher sitting next to you looking at your screen and explaining things to you. Direct and unpretentious.

Ahmad A.

This book is chock-full of best practices and insights that I was able to use to improve the data management and persistence within my apps.

Christopher D.

Core Data by Tutorials is simply the most comprehensive and straightforward way to get started with data persistence in Swift; it offers a better mix of theory and examples than most University level courses.

Joel R.
Core Data by Tutorials book cover

Learn Core Data with Swift!

Take control of your data in iOS apps using Core Data, Apple’s powerful object graph and persistence framework.

Top