iOS Core Data QuickStart Tutorial 2020

  Переглядів 97,712

CodeWithChris

CodeWithChris

День тому

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

КОМЕНТАРІ: 276
@s.mohammadmousavi4684
@s.mohammadmousavi4684 3 місяці тому
I was checking several youtube videos and series for learning to work with core data, all of them seemed either to simple or confusing because they jumped to a huge code base really quickly without explaining the core data properly first. Your explanation is perfect and easy to follow. Thanks.
@calebhermann
@calebhermann Рік тому
I really appreciated how you stuck to Core Data and didn't get lost in the UI of everything. This got me started in a great way. Thank you!
@CodeWithChris
@CodeWithChris Рік тому
Core Data is a tough cookie to get at first, glad we were able to help! @AdrienVillez
@curtisjones9988
@curtisjones9988 3 роки тому
Thank you for bringing brevity and order to the topic. Hours of searching and this video helped me implement it all.
@CodeWithChris
@CodeWithChris 3 роки тому
Glad to know this! Keep on going! -Arthur
@victorsebastian732
@victorsebastian732 2 роки тому
Amazing tutorial. Everything was explained in a great way and very understandable. Thanks for the effort to make this long course. Looking forwards to more videos!
@CodeWithChris
@CodeWithChris 2 роки тому
Super appreciate your support, Victor! All the best! -Arthur
@artemstarovoyt9615
@artemstarovoyt9615 Рік тому
Hey Chris, I am new to Swift and Core Data but I am fairly proficient Java Developer - I must say your lessons and incredibly informative and you have a very unique ability to cater to both experienced and new developers. I truly enjoy watching your videos! They are amazing!!! Thank you very much!
@CodeWithChris
@CodeWithChris Рік тому
Your comment made our day, Artem! Thank you so so much! -Arthur
@SejutiSharminMethila
@SejutiSharminMethila 4 місяці тому
I am making an iOS app that uses the camera to capture a flower image, classifies it using a pre-trained Core ML model, retrieves additional information from Wikipedia using an API request, and updates the UI accordingly. I want to create a core data local database with machine learning capabilities inside it. That's why I am here watching this tutorial. Very nicely explained all the steps. I will re-watch it again to build a better understanding. Thank you, please don't stop making tutorials.
@CodeWithChris
@CodeWithChris 4 місяці тому
We're happy that our content gives value to you. We wish you all the best on the project you're working @SejutiSharminMethila! Happy Coding! --Joash
@maaz6912
@maaz6912 2 роки тому
Chris, thank you for providing such an in-depth and informative tutorial on Core Data. It would be very helpful if you could provide us with the code that you have created in these tutorials. Cheers.
@CodeWithChris
@CodeWithChris 2 роки тому
Hello, kindly post your question in our CodeCrew forum so that our technical support staff can assist you. Go here: codecrew.codewithchris.com/ Thank you! -Arthur
@sajithtm4864
@sajithtm4864 2 роки тому
Excellent delivery of the concepts in a simple way. Amazing presentation 👌. It would be really great if you could make a video on core data multithreading. Thank You.
@CodeWithChris
@CodeWithChris 2 роки тому
Thank you so so much, Sajith! We always do our best to produce high-quality content for you guys. Your support means everything! :) -Arthur
@anamikachourasia2537
@anamikachourasia2537 3 роки тому
Thank you very much for making so informative series so that beginners can learn without much difficulty. You are really one of the best developer as well as tutor indeed. ✌️😄👏
@CodeWithChris
@CodeWithChris 3 роки тому
And you are one of the kindest and most promising students that we have. You'll only get better and better, Anamika! :-) -Arthur
@DD-hh3sp
@DD-hh3sp 2 роки тому
You're a great teacher, Chris. Well done, as with all of your videos!
@CodeWithChris
@CodeWithChris 2 роки тому
And you're a great student for sure. Thanks for learning with us! -Arthur
@yukkikatakamuna25
@yukkikatakamuna25 3 роки тому
I love your videos! Very clear and easy to listen! Thank you always!
@CodeWithChris
@CodeWithChris 3 роки тому
Yes, thank you so much for your support, Yukki! We appreciate you a ton! :-) -Arthur
@konstantin215
@konstantin215 3 роки тому
Thank. It helped to refresh the memory very quickly regarding CoreData. Very simple and straightforward, and most importantly without unnecessary water. The only thing I want to add is that there is not enough demonstration of how to bind an array to one object, for example, a contact to which a list of messages is attached, because developers, including beginners, often face this. Thanks for the guide!
@CodeWithChris
@CodeWithChris 3 роки тому
Thanks for the feedback! - Kat
@francoismajola3014
@francoismajola3014 2 роки тому
This was very helpful. Hard to come by such a clear presentation of Core Data for beginners. Thank you so much.
@CodeWithChris
@CodeWithChris 2 роки тому
Awesome, glad to know that you are finding so much meaning in our tutorials! :-) -Arthur
@Mrinal765
@Mrinal765 2 роки тому
Struggling to learn CoreData from a long time. You sorted it out. Thank you. :)
@CodeWithChris
@CodeWithChris 2 роки тому
Cheers! Happy to hear this! -Arthur
@joshuafagans7534
@joshuafagans7534 3 роки тому
Fantastic tutorial, just what I needed. Thanks!
@CodeWithChris
@CodeWithChris 3 роки тому
Awesome, Joshua! :-)
@spectre__et
@spectre__et 3 роки тому
Amazing Explanation man. Thanks alot.. That really cleared so much about CoreData
@CodeWithChris
@CodeWithChris 3 роки тому
Cheers, Abdul! Keep on going! :-) -Arthur
@cimoi2638
@cimoi2638 6 місяців тому
great tutorial I love how it is in one part and that it's concise I didn't have to skip that much. thank you!
@CodeWithChris
@CodeWithChris 6 місяців тому
Glad it was helpful! Thanks for watching! - Iñaki
@yzhan004
@yzhan004 Рік тому
Hey Chris, first, I have to say your tutorial is so helpful, thanks for providing so many wonderful videos. Then, I have a question on core data, is that only stored in local machine? could the data be shared with other users? for example, if I try to develop an app there has user login, and can I use core data to store all user info? or I have to let my app connect a real db, sql?
@pratyushclasher499
@pratyushclasher499 3 роки тому
After watching your video...i am really improving my coding skills.... Thanks for help.....💗💗💗💗
@CodeWithChris
@CodeWithChris 3 роки тому
Glad to hear that! - Kat
@user-ke9bo2fj8x
@user-ke9bo2fj8x 2 місяці тому
Could you please add some more UI elements to show the structure of the family? That should be very helpful for beginners to learn how Core Data works. Thanks!
@TitouanYT
@TitouanYT 3 роки тому
Thank you very much ! I'm wondering why this video only has 4k view because it is so good. You really deserve more. PS : i love the way you speak x)
@CodeWithChris
@CodeWithChris 3 роки тому
You are truly a legend! We value your support so much! :-) -Arthur
@user-hs8ef2lz3x
@user-hs8ef2lz3x 3 місяці тому
It would be great if you could also show how to modify an existing model when implementing Core Data in an existing project, that already has a data model with structs that conform to Codable for json parsing.
@user-a_fellow_traveler
@user-a_fellow_traveler Рік тому
thanks a lot mate, your explanations are really good and simple, just what i've been looking for
@CodeWithChris
@CodeWithChris Рік тому
Glad to hear that! - Pat
@SylsMusicRoom
@SylsMusicRoom 3 роки тому
Awesome content! Very clear explanations. Thank you so much for sharing this that will be more than useful for the WatchOS SwiftUI App I'm making
@CodeWithChris
@CodeWithChris 3 роки тому
Glad that our lessons helped you! Keep on going! -Arthur
@abymathew575
@abymathew575 3 роки тому
Your coredata tutorial is the best and simple clean tutorials I’ve ever experienced.
@CodeWithChris
@CodeWithChris 3 роки тому
Wow, thanks! - Kat
@programming5523
@programming5523 Рік тому
Chris is the best out their his explaining is very clear and precise.Thanks for all the useful content.
@CodeWithChris
@CodeWithChris Рік тому
Thank you for the kind words! :) - Pat
@user-gb1uj3zw6o
@user-gb1uj3zw6o 2 роки тому
Such a great tutorial! Thank you so much!
@CodeWithChris
@CodeWithChris 2 роки тому
You are so welcome! Happy to help! -Arthur
@seanLeprechaun
@seanLeprechaun 2 роки тому
Love this tutorial. Really easy to follow. I have to build a video tutorial for a project at my office. Do you mind if I ask what tool(s) you use to make these? I love how you're able to fit such a large screen into a smaller window with scrolling rather than making things cramped or tiny.
@CodeWithChris
@CodeWithChris 2 роки тому
Hello, Sean! Kindly post your question in our CodeCrew forum so that our tech support staff can assist you. Thanks for watching! :) -Arthur
@shawnfrank5303
@shawnfrank5303 2 роки тому
Great tutorial and I have to really appreciate the time and effort that has gone into making this so detailed. I have used CoreData with Obj C some time ago so I wanted to refresh my knowledge and I learned so many new things. I would say one thing I was hoping to see was about the migrations if we need to change the DataModel when shipping a new version of the app - does this still need to be done or has Apple taken made this easier somehow ?
@CodeWithChris
@CodeWithChris 2 роки тому
"Hello, supposedly all the datamodels or the ""set-up"" should be the same accross different versions because its an apple ""core"" database.. however, do remember that this is a local only database,, so if the user decides to change phones then the data won't get carried over, for that it would be ideal to check out cloud solutions like Firebase. - Francis"
@mrmihawkgaming8951
@mrmihawkgaming8951 2 роки тому
Bro!!!! Thanks a lot. Your video on Core Data help me to understand many concept of it. You are the best teacher buddy.😎
@CodeWithChris
@CodeWithChris 2 роки тому
Wow, thank you for your awesome comment. Made our day! -Arthur
@user-pu9xn1fw5m
@user-pu9xn1fw5m 2 роки тому
Thank you so much. Your videos have been so helpful!
@CodeWithChris
@CodeWithChris 2 роки тому
Yay, we're glad to know that we positively impacted your learning journey. The best is yet to come for you! :-) -Arthur
@jugglinpagasi
@jugglinpagasi 3 роки тому
Chris, I’m totally still using UIKit and Storyboard(I blame you for teaching it to me lol), so this is the good stuff for me! Lol thanks!
@CodeWithChris
@CodeWithChris 3 роки тому
Yay, happy to know this. Keep on having fun learning! -Arthur
@ponmaniraja7050
@ponmaniraja7050 2 роки тому
Crystal and clear explanation. Thanks Bro. If possible pls post video about create multiple NSManagedObjectContext.
@CodeWithChris
@CodeWithChris 2 роки тому
Thank you so much for your kind words! :-) -Arthur
@olegsharov6605
@olegsharov6605 Рік тому
Chris, you are great teacher! Thank you for your effort
@CodeWithChris
@CodeWithChris Рік тому
Thank you for the kind words! :) - Pat
@user-uw4qv6vy6n
@user-uw4qv6vy6n 2 роки тому
perfect video about core data!!! Thank you
@CodeWithChris
@CodeWithChris 2 роки тому
Priviet! Thanks for learning with us. Spasiba! :-) -Arthur
@edwardjob1437
@edwardjob1437 2 роки тому
Really great tutorial! Explained very clearly👍
@CodeWithChris
@CodeWithChris 2 роки тому
Thank you so much, Edward! :-) -Arthur
@GOKUSUN-lg2ls
@GOKUSUN-lg2ls 6 місяців тому
that's super great! it's very very helpful to me
@TK-tg1hx
@TK-tg1hx 3 роки тому
What a great video!!! I really want to thank you so much!
@CodeWithChris
@CodeWithChris 3 роки тому
You're so welcome, subscribe for more! :-) -Arthur
@sergiovinhal5934
@sergiovinhal5934 3 роки тому
Very good explanation Mr Chris .. You help me so much .. Thank you !!
@CodeWithChris
@CodeWithChris 3 роки тому
Your support means a lot to us, Sergio! Thank you for being so kind! :-) -Arthur
@sergeyivanov3351
@sergeyivanov3351 2 роки тому
Wow! Video quality and magnification is great, i can look it on my ipad! Thank you!
@CodeWithChris
@CodeWithChris 2 роки тому
Thanks for all the love, Sergey! Spasiba! :) -Arthur
@vladc.5311
@vladc.5311 Рік тому
Wow I also gave up on CoreData after watching boring apple presentations then found this tutorial and it's absolutely a breeze to understand the concept now
@CodeWithChris
@CodeWithChris Рік тому
Thank you for the kind words!! - Pat
@shivshankargupta4051
@shivshankargupta4051 3 роки тому
Thanks man for creating such amazing video. Keep posting..
@CodeWithChris
@CodeWithChris 3 роки тому
We highly appreciate you, Shivshankar! Thanks for your kindness! :-) -Arthur
@aleksejsigaj1373
@aleksejsigaj1373 3 роки тому
Thank you for this video!
@CodeWithChris
@CodeWithChris 3 роки тому
You're welcome, Alexey! :-) -Arthur
@vaishnavirathod4822
@vaishnavirathod4822 2 роки тому
Awesome tutorial. Very nicely explained loved it. Made Easy....Thank you very much
@CodeWithChris
@CodeWithChris 2 роки тому
Happy that you liked our tutorial. Keep on going! :) -Arthur
@flexyfishy8078
@flexyfishy8078 3 роки тому
Hey Chris, i finished my app today. But i dont know what i can use for data protection. I am using Firebase and all that stuff. Maybe you can make a video on that? I know a lot of people facing this problem👌🏻 Have a great day!
@CodeWithChris
@CodeWithChris 3 роки тому
Hello, using Firebase Auth is data protection is in itself, yo u can also limit data access based on firebase rules, i suggest checking firebase documentation for it or maybe some articles - Francis
@citywitt3202
@citywitt3202 3 роки тому
Where has this been all my life :D
@CodeWithChris
@CodeWithChris 3 роки тому
Welcome to CodeWithChris! 😀 - Kat
@ahmadkhattab5700
@ahmadkhattab5700 2 роки тому
This is a great video with great explanation much love bro
@CodeWithChris
@CodeWithChris 2 роки тому
Much love to you too, Ahmad! Salaam! -Arthur
@sairamakula15
@sairamakula15 3 роки тому
very useful chris...please do more videos.thank you!!
@CodeWithChris
@CodeWithChris 3 роки тому
We sure will make more! Thanks a ton, Sairam! -Arthur
@sairamakula15
@sairamakula15 3 роки тому
@@CodeWithChris please do video on table view.
@jesuscalleja8537
@jesuscalleja8537 3 роки тому
Thanks a lot!, really helpful :D !
@CodeWithChris
@CodeWithChris 3 роки тому
Glad to know that we have helped you, Jesus! :-) -Arthur
@marinaalecriim
@marinaalecriim Рік тому
thank you so much for this tutorial! you made all this content to be so clear! =)
@CodeWithChris
@CodeWithChris Рік тому
Appreciate your support, Marina! We're all cheering for you! -Arthur
@nikitaalymov5880
@nikitaalymov5880 Рік тому
Excellent lesson! Thank you for this video :)
@CodeWithChris
@CodeWithChris Рік тому
Thank you for watching! - Pat
@CoachTatecom
@CoachTatecom 3 роки тому
well done mate. thank you.
@CodeWithChris
@CodeWithChris 3 роки тому
You're so kind! Thanks a ton for your support! :-) -Arthur
@bigmtnstudio
@bigmtnstudio 2 роки тому
Awesome tutorial. Thanks, Chris!!
@CodeWithChris
@CodeWithChris 2 роки тому
Thanks for everything, Mark!
@christiangutierrez8386
@christiangutierrez8386 3 роки тому
I appreciate your videos, do you think you can make a video on making a Uber or doordash like app. I would really like to learn something like that
@CodeWithChris
@CodeWithChris 3 роки тому
We'll see what we can do, Christian! Thanks for dropping by! :-) -Arthur
@ariangmohamadi3251
@ariangmohamadi3251 2 роки тому
thank you very much , it help me a lot
@CodeWithChris
@CodeWithChris 2 роки тому
You are so welcome! Keep on going! :-) -Arthur
@gauravkalele7491
@gauravkalele7491 Рік тому
Dude you are awesome ! Very very helpful videos !
@CodeWithChris
@CodeWithChris Рік тому
Glad you like them! - Pat
@kimtipatel7
@kimtipatel7 Рік тому
Really nicely explained new version of Coredata
@CodeWithChris
@CodeWithChris Рік тому
Thank you! - Pat
@ivanlyaskovets6804
@ivanlyaskovets6804 Рік тому
Awesome tutorial! Thanks a lot!
@CodeWithChris
@CodeWithChris Рік тому
You're welcome! :) - Pat
@drewgost
@drewgost 3 роки тому
Chris first and foremost Great! explanation and teaching skills, Thank you. However I need to understand how to use CoreData without a tableView? I am using Labels and buttons with the data generated by an Alert Controller.
@CodeWithChris
@CodeWithChris 3 роки тому
"Hello, it should be similar the main difference is your ""data"" is not anymore part of any datasource (of the tableview) so its just a raw array or dictionary, you can use this array or dictionary directly to put the data inside your labels or textfields - Francis"
@pasaninduwaraedirisooriya2008
@pasaninduwaraedirisooriya2008 2 роки тому
The best explanation as always...
@CodeWithChris
@CodeWithChris 2 роки тому
Wow, so humbling. Thank you for learning with us! -Arthur
@sheikhbayazid1778
@sheikhbayazid1778 3 роки тому
it would be great if you’d make a same video for swiftui
@merylt972
@merylt972 3 роки тому
I agree that would be awesome
@CodeWithChris
@CodeWithChris 3 роки тому
Hello, you can add your requests here: cwc.to/request :) - Kat
@hustlas4ever
@hustlas4ever 3 роки тому
Thank you so much!
@CodeWithChris
@CodeWithChris 3 роки тому
You are so welcome, Mark! Keep on having fun! :-) -Arthur
@TheHungryP0tat0z
@TheHungryP0tat0z 3 роки тому
Hey Chris, really great video. I'm a bit stuck as how to use Core Data with SwiftUI instead of Storyboards. In my project I have a Persistence.swift file and I've been trying to make sense of it but can't find much information about it online, any help or pointers would be appreciated.
@CodeWithChris
@CodeWithChris 3 роки тому
"Hello, it should be possible to link your persistence file but on the appdelegate side so it because globally usable i suggest creating a blank swiftui project with coredata enabled so you can see the appdelagate code that you need, then modify it to your preference - Francis"
@kasunjayasekara3052
@kasunjayasekara3052 2 роки тому
Thank you very much this is an excellent explanation :). Is that any difference between SwfitUI core data and this tutorial?
@CodeWithChris
@CodeWithChris 2 роки тому
"Hello, the concept is generally the same its just that this one is made using Storyboard/UIKit and the other one is SwiftUI - Francis "
@rylanjevans
@rylanjevans 3 роки тому
@CodeWithChris long time follower! I love your content and lessons. Oh, and I love your personality! You're made to do this. Question for you. Are you planning on doing a video on CloudKit and CloudKit JS? I'm very interested in that database because it matches what I'm looking for in the long term. Are you willing and able to do videos on that, please?
@CodeWithChris
@CodeWithChris 3 роки тому
Thanks a ton, Rylan! We appreciate you! Noted on your suggestion. You can also post your questions in our forum community so that our technical support staff can give you more insights about this topic. Go here: codecrew.codewithchris.com. Cheers! :-) -Arthur
@rylanjevans
@rylanjevans 3 роки тому
@@CodeWithChris Thanks Arthur! I have bookmarked the community for future questions. Great content. Keep it up!
@gravesml01
@gravesml01 3 роки тому
Chris, this is good stuff if a person is still using UIKit and Storyboards. Do you have anything on this for people using SwiftUI?
@CodeWithChris
@CodeWithChris 3 роки тому
Cheers, Mitch! We just started released SwiftUI tutorials. Check out our playlist. :-) -Arthur
@ElverGalarga-rh6gm
@ElverGalarga-rh6gm 3 роки тому
Awsome this tutorial. There is some xcode tool (i use 10.3) or third party to check data stored in my entities?? or only i can see them from application who create them??. There are entity constraints??
@CodeWithChris
@CodeWithChris 3 роки тому
Hello, im not sure if there are third party because its a core apple feature but i guess there should be some cocoapods or github projects that you can find for it - Francis
@gjermundification
@gjermundification 3 роки тому
@CodeWithChris As pr usual, well taught. Here is my question 14:22 When do you think this is the right way to do it? And when do you think you should rather choose related records through a relationship/edge?
@CodeWithChris
@CodeWithChris 3 роки тому
"Hello, it depends on the design really, in database design it would be ideal to make a separate table and make a relationship as it would make things more scalable and easier to track and have one mega table full of information that may be blank - Francis"
@cheesecake2281
@cheesecake2281 2 роки тому
Great tutorial. cheers
@CodeWithChris
@CodeWithChris 2 роки тому
Happy to know this. Thank you! -Arthur
@NaveenKumarIOS
@NaveenKumarIOS Рік тому
Hey chris ! , I have learned a lot from your lessons to become a code crew member Thanks :)
@CodeWithChris
@CodeWithChris Рік тому
So happy to have you on board! Don't forget to add this link to your tabs: codecrew.codewithchris.com/ See you in the forum! @AdrienVillez
@krishaSadhu
@krishaSadhu 2 роки тому
Hello sir, Can you please make a video on login and sign up with coredata? I will be soo greatful to you..
@CodeWithChris
@CodeWithChris 2 роки тому
Hello, post your suggestion here: app.productstash.io/codewithchris#/ideas :-) -Arthur
@nurzhanabilkaiyr9705
@nurzhanabilkaiyr9705 3 роки тому
Awesome explanation. Thanks) Is there access to the project?
@CodeWithChris
@CodeWithChris 3 роки тому
Thank you so much! Just go here: codewithchris.com/start -Arthur
@jorgecastilleja5356
@jorgecastilleja5356 Рік тому
Thank you
@CodeWithChris
@CodeWithChris Рік тому
You're welcome! - Pat
@maks8835
@maks8835 3 роки тому
excellent work
@CodeWithChris
@CodeWithChris 3 роки тому
Thanks for your kindness! Have fun! -Arthur
@willasaskara
@willasaskara 3 роки тому
thanks a lot!
@CodeWithChris
@CodeWithChris 3 роки тому
You are so welcome, Willa! Have a great day! :-) -Arthur
@raktimdey381
@raktimdey381 3 роки тому
I just finished ur war game tutorial and basic swift. Should i learn it now?
@CodeWithChris
@CodeWithChris 3 роки тому
Yes, you can watch this next. :) - Kat
@BeWithNarendar
@BeWithNarendar 2 роки тому
Perfect !!
@CodeWithChris
@CodeWithChris 2 роки тому
Cheers, Narendar! Keep on learning with us! -Arthur
@meichelrendio3510
@meichelrendio3510 3 роки тому
nice explanation
@CodeWithChris
@CodeWithChris 3 роки тому
Thanks for the kind words, Michael! :-) -Arthur
@rupu1372
@rupu1372 3 роки тому
Should i watch this video or your previous core data video series?
@CodeWithChris
@CodeWithChris 3 роки тому
Hi there! This video is the stitched version of all the lessons in the Core Data series. So if you want to watch the Core Data series in one seating, this is it. - Kat
@manojguggilla2288
@manojguggilla2288 Місяць тому
I appreciate your reply for every Comment
@user-zi5xh8cb2u
@user-zi5xh8cb2u 3 роки тому
You're GOD!!! Thank you so much!!!!!
@CodeWithChris
@CodeWithChris 3 роки тому
You are so welcome! :-) Keep on having fun!
@alex741321
@alex741321 2 роки тому
Hi thanks for your video, as always. I can't find any tutorial on how to pre populate core data with a .sqlite that had allowed external storage. And load those images that were in external storage.
@CodeWithChris
@CodeWithChris 2 роки тому
"Hello, you can just probably ""query"" the data table from sqllite and just insert the new data into CoreData.. it should preserve the data or at least the locations of the images so there should be no problems accessing it - Francis"
@alex741321
@alex741321 2 роки тому
@@CodeWithChris Thanks for your reply, I actually copied the image reference directory (called: _SUPPORT) and the .sqlite in the app bundle and when launching for the first time, programmatically copy from bundle to library/application support
@abduls4321
@abduls4321 3 роки тому
Hi Chris, I’m confused to be honest as I see lots of videos to create an app. I need your guidance how can I start creating my own app from start to finish based on my idea that I want to implement for my own business. How to start ? Knowing the basics to stater to advance. Do you have something as a step by step process tell advance and tell I am able to launch my app ??? Please advice
@CodeWithChris
@CodeWithChris 3 роки тому
Hey there, you've come to the right channel. Start with this Beginner playlist bit.ly/BeginnersPlaylist - Kat
@rapier64
@rapier64 2 роки тому
Hi Chris, is this course suitable for learning SwiftUI Core Data, as well or not? Thanks a lot for your help!
@CodeWithChris
@CodeWithChris 2 роки тому
Yes it is suitable. Enjoy! :) -Arthur
@w0mblemania
@w0mblemania Рік тому
Thanks for the tutorial. It was very good! @43:17 You say we're calling self.context.save() from a background thread. Are you sure this is correct? UIAlertAction is being called as a response to a UI event on the main thread, thus it should be guaranteed to call the handler on the main thread, not a background thread. Cheers.
@CodeWithChris
@CodeWithChris Рік тому
Hello, kindly post this question in our CodeCrew forum so that our tech support staff can assist you. Go here: codecrew.codewithchris.com. Thank you! -Arthur
@davidnorris9834
@davidnorris9834 Рік тому
Hi there, very interested in Core Data and CloudKit.. I want to develop a simple app to update chess grades for players in the form of a database for local teams in my county. This has to use a formula to calculate grades depending on whether there is a win, draw or loss. I would like it so that I can have a Public database with the data of games played and supply code in the app to calculate a new grade and also possible to have a graph to show the progress of the grade of a player with each game played. I am pretty daunted but I'm gonna stick with it and any advice would be great!!
@ShubhamSingh-bm4ig
@ShubhamSingh-bm4ig 3 роки тому
Do you videos on how to use Sqlite in iOS? If you have then please let me know because I couldn't find it, and if you haven't made any then please make one. I like your contents Thankyou
@CodeWithChris
@CodeWithChris 3 роки тому
We'll take note of your suggestion, Shubham! :-) -Arthur
@jackmaloney5337
@jackmaloney5337 3 роки тому
Thank you so much for this tutorial, it was immensely helpful! I am unfortunately running into an error. When I try and call the fetchEvents method from a different class with "MyTaskVC().fetchEvents()", I am getting this error when I try and reload the data: "Fatal Error: Unexpectedly found nil while implicitly unwrapping an Optional value: file" but when I call fetchEvents() from the class it's defined in, it works perfectly fine. Any idea how to solve this problem?
@CodeWithChris
@CodeWithChris 2 роки тому
"Hello, it seems you are running it from an external ViewController? or is that just a class that contains the method.. if its just the class you might need to declare it before you use it.. and don't forget to set the delegate if it has one - Francis"
@oldschool84
@oldschool84 Рік тому
Thanks for this tutorial, it's explained so easy to understand. I have a question. I am a beginner and I am currently developing a webshop application. Data is pulled from the Magento backend, via GraphQL and the Apollo client. I need the application to download all data about products and prices while it is online, but to be able to work later in offline mode as well. So when he returns to the online mode, to withdraw all changes and if there are any, to write them in Core Data. Is Core Data a good choice for such a thing?
@CodeWithChris
@CodeWithChris Рік тому
Hey there! We suggest posting on our CodeCrew forum so that our tech support staff can help you. Just visit this link codecrew.codewithchris.com - Pat
@oldschool84
@oldschool84 Рік тому
@@CodeWithChris ok, thanks
@danielcrompton7818
@danielcrompton7818 9 місяців тому
So am I right core data is some kind of ORM (object relational mapping) service?
@happyborn6140
@happyborn6140 3 роки тому
When you do tutorials, can you just teach us how to print the data or something? My UITable is screwed up for some reason, and now I can't even learn about Core data, but I don't even need a table. I just need to know how to print data from core data. Thanks!
@CodeWithChris
@CodeWithChris 3 роки тому
"Hello, you can just simple do the same but instead of putting it as data source or something you can just use the array directly and print the values inside - Francis"
@jscorpio1987
@jscorpio1987 3 роки тому
This is why I wish Swift worked nicely with C++. I like being able to create my own persistent storage libraries and it’s so much easier and less convoluted in C++ than anything you can do with Swift.
@CodeWithChris
@CodeWithChris 3 роки тому
Hello, there might be some 3rd party library/framework that can be used to run or add c++ files on your project, i suggest looking at options in github or cocoapods - Francis
@w0mblemania
@w0mblemania Рік тому
Not often you hear something is "less convoluted" in C++. Usually, it's very much the opposite case. But with CoreData, unfortunately, it retains its reference baggage from ObjectiveC. We need a new SwiftDataStorage framework from Apple, that fundamentally uses value types, with Swift idioms, and a SwiftUI-like API.
@muzammalabdulghafoor6418
@muzammalabdulghafoor6418 2 роки тому
Great video
@CodeWithChris
@CodeWithChris 2 роки тому
Thank you! @AdrienVillez
@monicamarineoffice7243
@monicamarineoffice7243 3 роки тому
HELLO, CHRIS WHICH SOFTWARE DO YOU USE FOR THE ANIMATIONS IN YOUR VIDEOS AND WHICH SOFTWARE DO YOU USE TO MAKE YOUR THUMBNAIL.
@CodeWithChris
@CodeWithChris 3 роки тому
We use Figma/Sketch for editing images and Camtasia for videos. - Kat
@aaronl8443
@aaronl8443 3 роки тому
hmm... where can we find the ui code..? thanks so much for great content.. it was amazing one!
@CodeWithChris
@CodeWithChris 3 роки тому
Hello, are you asking about the source code? -Arthur
@aaronl8443
@aaronl8443 3 роки тому
@@CodeWithChris yes just only for UICode before staring to do details... Do you also have a content related how we can access NSet in the family... I tried to figure out but was not so sure... Thanks for your prompt reply
@edwincreator2855
@edwincreator2855 3 роки тому
Thanks
@CodeWithChris
@CodeWithChris 3 роки тому
Welcome! - Kat
@toanuk
@toanuk 3 роки тому
Hi chris. It is good explaination in coredata. But In advance I am or most people use SwiftUI not storyboard every more. It is over 2 years since I've seem it again. More codes and confused.... I like the layout in coredata person relation to family. But not storyboard. If I used swiftUI, please show me CRUD in coredata for swiftUI. Look forward to see it Thanks. Toan Nguyen
@CodeWithChris
@CodeWithChris 3 роки тому
Soon we will focus more on SwiftUI. We will do both actually as Storyboard is beginner friendly. Meanwhile, I found a couple of interesting tutorials for you on Google, feel free to search for more. www.hackingwithswift.com/books/ios-swiftui/how-to-combine-core-data-and-swiftui www.raywenderlich.com/9335365-core-data-with-swiftui-tutorial-getting-started developer.apple.com/forums/thread/650876 @AdrienVillez
@comfortablenetworks5415
@comfortablenetworks5415 3 роки тому
Nice beginner tutorial from a professional informatical perspective. #coredata #learnNextStep
@CodeWithChris
@CodeWithChris 3 роки тому
Thank you so, so much! We can't wait to see you grow! :-) -Arthur
@luisr2033
@luisr2033 3 роки тому
What website or app do you use to get images that you use in your Xcode projects and how do you make the quality of those images differ for different phones???
@CodeWithChris
@CodeWithChris 3 роки тому
You can get images from pixabay.com, unsplash, or icons8.com - Kat
@v3lojt
@v3lojt 3 роки тому
quick question about relationships would it work the same way if our family entity had an attribute of an array of people? and we just put the attribute type set to transformable? and then set the custom class to [Person]
@CodeWithChris
@CodeWithChris 3 роки тому
"Hello, yes its possible to make a ""Family"" class with an array of members from a ""Person"" class, just make sure you have created the Person class first - Francis"
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
I PUT MY ARMOR ON (Creeper) (PG Version)
00:19
Sam Green
Переглядів 6 млн
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 6 млн
Первая поломка Scirocco! Балацко попал на мотор.
1:13:12
Flutter for iOS developers
13:43
Flutter
Переглядів 95 тис.
CoreData в Swift. Разработка приложений
47:55
simpleDEV. Swift c нуля до бесконечности
Переглядів 7 тис.
Core Data Tutorial - Lesson 1: Core Data Basics
6:47
CodeWithChris
Переглядів 63 тис.
Introduction to Core data Swift 5 iOS Hindi tutorial for beginners
22:56
Intro to Databases (MySQL, CloudKit, Firebase, Core Data, Realm)
20:43
CodeWithChris
Переглядів 69 тис.
How I would start iOS Development in 2024
10:23
Flo writes Code
Переглядів 17 тис.
How to Make an App in 8 Days (2024) - Full Walkthrough
3:00:49
CodeWithChris
Переглядів 443 тис.
How to safely work with Core Data on a background thread
5:36
Swift Arcade
Переглядів 8 тис.
I PUT MY ARMOR ON (Creeper) (PG Version)
00:19
Sam Green
Переглядів 6 млн