This is part of the "iOS Data and Networking" learning path. View Path

Core Data: Fundamentals

Jul 19 2022 · Video Course (53 mins) · Beginner

Learn the basics of Core Data in this beginner series. You’ll learn how to model your data with attributes and relationships, save data using a context, display saved data in lists and much more, in both SwiftUI and UIKit!

Version

  • Swift 5.5, iOS 15.4, Xcode 13.3.1

The Core Data Stack

Introduction

3:03 Free

What is Core Data? Find out how it is used to store data in your apps.

1

Take a high level tour of the Core Data stack and understand what Core Data is and isn’t.

2

Understand how Core Data represents an app’s data model using managed objects

3

Core Data needs to keep track of changes to the managed object model and it does this using a managed object context. Get a high level understanding of how a context is used in this episode.

4

Understand how the persistent store coordinator facilitates communication between the context and underlying data store.

5

Create a Core Data stack for use in the RocketLaunches app!

6

Conclusion

1:44

Wrap up this section by reviewing what you’ve learned about the Core Data stack, and find out what’s coming up in the next section.

7

Saving Launches

In this episode, you’ll get a look at this part of the course, which covers how to create a data model and save data to the store.

8

Learn what an Entity is in the Core Data framework and how you can add attributes to model your data.

9

In this challenge complete the RocketLaunch entity by adding attributes to define your data model.

10

Understand what managed object subclasses are and how you can use them in code to represent your Core Data model.

11

Now that you have a RocketLaunch class you can use learn how to populate it and save data to the persistent store.

12

Conclusion

1:47

Wrap up this course by reviewing what you’ve learned about the core data stack, creating data models and persisting entities. Also find out where to go next!

13

Next course in this Learning Path

Version history

iOS 15.4, Swift 5.5, Xcode 13.3.1 (Selected)

Jul 19 2022

iOS 13, Swift 5.1, Xcode 11.3

Oct 1 2020

iOS 12, Swift 4, Xcode 10

Oct 2 2018

iOS 11, Swift 4, Xcode 9

Nov 14 2017

iOS 10, Swift 3, Xcode 8

Jan 24 2017

iOS 9, Swift 2, Xcode 7

Aug 24 2015

Who is this for?

Beginners with just a little bit of iOS and Swift experience. This course isn’t suited for intermediate or advanced developers. If that’s you, check out our intermediate or advanced video courses for more ways to level-up your developer skills!

Covered concepts

  • Managed object models
  • Managed object contexts
  • Fetch requests and fetch results
  • Sorting data with sort descriptors
  • Filtering data with predicates
  • Using fetched results controllers to handle data changes
  • Storing large files as external data

Contributors

Comments