Core Data: Beyond the Basics

Jul 26 2022 · Swift 5.5, iOS 15, Xcode 13.3.1

Part 1: Fetching & Displaying Launches

01. Introduction

Episode complete

Play next episode

About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Next episode: 02. Displaying Launches
Transcript: 01. Introduction

Hey there, it’s Josh and welcome to the second course in the iOS Beginner’s path for Core Data: Beyond the Basics! If you haven’t watched the first video, Core Data: Fundamentals, and don’t have previous experience with Core Data, I suggest going back and watching that first. Either way, here’s a recap of what that course covered.

A PersistenceController object represents the classes that make up the Core Data Stack. If you use the Core Data template in Xcode, the template places the PersistenceController in the Persistence.swift file.

You use the Core Data model editor to define Entities that represent the objects in your database. You can also use this editor to define relationships between the entities, and define attributes on them.

Finally, NSManagedObjects represent the entities as code. You create instances of those objects in the context, a special scratch space, set their attributes, and when ready, save them to the persistent store.

But what about getting data out of the persistent store and displaying it to the user? How do you deal with large amounts of data your app reads in asynchronously? What about saving large files? In this course, you’ll learn about all that and more. In this first part, you’ll learn about how to retrieve data, filter it, sort it, display it, and more!

I can’t get started without giving recognizing 2 important people. Pasan Premaratne wrote the last version of this course and was the basis for this latest update. Also, a major shout out to Gina de la Rosa, who is the technical editor for this course. Please give them both a follow on twitter - and while you’re there follow me at @hococoder.

With those shout outs complete, let’s get started!