Переглядів 97,712
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.
Please note that working with Core Data isn't a beginner level topic. Make sure you've gone through my 29 Day Beginner Challenge first here:
- • How to Make an App for...
In this tutorial, I mentioned JSON decoding/encoding. If you're interested in learning more about that, check this videos out:
- • What is JSON - JSON Pa...
Configuring Entities:
- developer.apple.com/documenta...
Generating Code:
- developer.apple.com/documenta...
Swift Int Sizes:
- www.tutlane.com/tutorial/swif...
iOS Device Architectures:
- blakespot.com/ios_device_spec...
𝗟𝗶𝗻𝗸𝘀 𝘁𝗼 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻:
Core Data: developer.apple.com/documenta...
NSPredicate: developer.apple.com/documenta...
NSFetchRequest: developer.apple.com/documenta...
𝗧𝗶𝗺𝗲 𝗦𝘁𝗮𝗺𝗽𝘀:
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
🚨 SPECIAL CWC+ OFFER FOR UKposts:
cwc.to/youtubeoffer
MY FREE ONLINE COURSE:
⚡ How to make an app in 14 days - cwc.to/14days
CWC+ PROGRAM:
👩💻 All our courses in a learning path - cwc.to/plus
WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - cwc.to/newsletter
CONNECT:
🌍 Website - codewithchris.com
😺 GitHub - github.com/codewithchris
📸 Instagram - / codewithchris
🐦 Twitter - / 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! cwc.to/reviews
#CoreData #iOS #Swift