Beginning Core Data
Oct 2 2018 · Video Course (1 hr, 41 mins) · Beginner
Learn the basics of using Core Data in this beginning series! You’ll learn how to model your data with attributes and relationships; add and update records; and then fetch your data with sorting and filtering options.
5/5Version
- Swift 4, iOS 12, Xcode 10
Part 1
What is Core Data? What does it bring to the table? This introduction will give you an overview of this powerful framework.
1This video provides an overview of the starter project and how it works so you can be familiar with it throughout the course.
2Core Data is composed of a variety of components. In this tutorial, you'll learn about the various pieces that make up Core Data.
3Managed objects are what you use to construct your Core Data objects. In this video, you'll get started by making one.
4With our entity in place, it's time to add some additional attributes to it. Your challenge is to do this.
5Attribute Types
5:04As you start to build your objects, you'll need to both get them and then to sort them. This video will walk you through the process.
6Binary Data
4:51Core Data allows you to save binary data to your data store. This video shows you how to work with binary data.
7Predicates
5:51While not Core Data specific, predicates allow you to use a SQL-like syntax to search through your collections for a specific objects.
8Filtering
2:19With a few lines of code, you can easily filter your Core Data objects. This video walks you through the process.
9Sorting
3:57In this video, you'll learn how to sort your objects by the way of sort descriptors.
10While we implemented filtering and sorting, unfortunately, things aren't working as expected. Your challenge is to fix it.
11Conclusion
0:48This video concludes the first section and gives an overview of what will be covered in the next one.
12Part 2
By combining a fetch request with a controller, you get a lot of power in an easy to use object.
14This video covers the process of ordering your objects by section.
15In your first challenge of the section, you'll add another entity.
16Relationships in Code
10:45Once you define a relationship in your model, you'll need to access it in code. This video will show you how.
18In your final challenge, you'll write the code to delete the pet objects.
20The fetched results controller can inform you when your data changes. In this video, you'll learn how to respond to such changes.
21
Comments