Learn how to use Core Data for iOS to do local data storage! In this lesson, you'll learn how Core Data works and the basics of how you'll use it in your iOS app.
You'll learn all about the Core Data Persistent Container, Managed Object Context, Entities, Attributes and the Core Data Model.
👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. https://codewithchris.com/plus
In this tutorial, I mentioned JSON decoding/encoding. If you're interested in learning more about that, check this videos out:
-
https://youtu.be/_TrPJQWD8qs
Configuring Entities:
- https://developer.apple.com/documentation/coredata/modeling_data/configuring_entities
Generating Code:
- https://developer.apple.com/documentation/coredata/modeling_data/generating_code
Swift Int Sizes:
- https://www.tutlane.com/tutorial/swift/swift-data-types
iOS Device Architectures:
- https://blakespot.com/ios_device_specifications_grid.html
𝗟𝗶𝗻𝗸𝘀 𝘁𝗼 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻:
Core Data: https://developer.apple.com/documentation/coredata
NSPredicate: https://developer.apple.com/documentation/foundation/nspredicate
NSFetchRequest: https://developer.apple.com/documentation/coredata/nsfetchrequest
𝗧𝗶𝗺𝗲 𝗦𝘁𝗮𝗺𝗽𝘀:
00:00 Lesson 1
00:40 Why Core Data?
01:47 Interactions
02:22 Diagram
05:52 Outro Lesson 1
06:33 Lesson 2
07:05 Lesson 1 Recap
07:31 New Core Data Xcode Project
08:32 Define Entities and Attributes
14:57 Generating the Classes
22:14 Reference to the Core Data Persistent Store
24:04 The Managed Object Context
26:03 Add Core Data to an Existing Xcode Project
28:56 Conclusion Lesson 2
29:07 Lesson 3
29:19 Initial UI Setup
31:29 Retrieving Data
38:31 Creating Data
43:52 Deleting Data
46:08 Updating Data
48:06 CRUD Recap
49:03 Outro Lesson 3
49:14 Lesson 4
49:43 Lesson 3 Recap
51:15 Setting up the properties
52:45 Filtering
55:18 NSPredicate Doc
56:41 Sorting
58:39 NSFetchRequest Doc
59:11 Outro Lesson 4
59:40 Lesson 5
59:57 Diagram
01:00:16 The Family Entity
01:03:22 Generating the Custom Classes
01:05:16 Reviewing the New Classes
01:07:16 Implementing the Code
01:10:20 Outro Lesson 5
MY FREE ONLINE COURSE:
⚡ How to make an app in 8 days - https://cwc.to/start
CWC+ PROGRAM:
👩💻 All our courses in a learning path - https://cwc.to/plus
WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - https://cwc.to/newsletter
CONNECT:
🌍 Website - https://codewithchris.com
😺 GitHub - https://github.com/codewithchris
📸 Instagram - https://www.instagram.com/codewithchris/
🐦 Twitter - https://twitter.com/codewithchris
ABOUT CODEWITHCHRIS:
Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! https://cwc.to/reviews
#CoreData #iOS #Swift