iOS Core Data QuickStart Tutorial 2020

  Рет қаралды 100,881

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.
👋 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. codewithchris.com/plus
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
MY FREE ONLINE COURSE:
⚡ How to make an app in 8 days - cwc.to/start
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

Пікірлер: 278
@CodeWithChris
@CodeWithChris 2 ай бұрын
👋 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. codewithchris.com/plus
@s.mohammadmousavi4684
@s.mohammadmousavi4684 6 ай бұрын
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 2 жыл бұрын
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 2 жыл бұрын
Core Data is a tough cookie to get at first, glad we were able to help! @AdrienVillez
@artemstarovoyt9615
@artemstarovoyt9615 2 жыл бұрын
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 2 жыл бұрын
Your comment made our day, Artem! Thank you so so much! -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
@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
@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
@SejutiSharminMethila
@SejutiSharminMethila 7 ай бұрын
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 7 ай бұрын
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
@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
@konstantin215
@konstantin215 4 жыл бұрын
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 4 жыл бұрын
Thanks for the feedback! - Kat
@joshuafagans7534
@joshuafagans7534 3 жыл бұрын
Fantastic tutorial, just what I needed. Thanks!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Awesome, Joshua! :-)
@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
@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
@francoismajola3014
@francoismajola3014 3 жыл бұрын
This was very helpful. Hard to come by such a clear presentation of Core Data for beginners. Thank you so much.
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Awesome, glad to know that you are finding so much meaning in our tutorials! :-) -Arthur
@Mrinal765
@Mrinal765 3 жыл бұрын
Struggling to learn CoreData from a long time. You sorted it out. Thank you. :)
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Cheers! Happy to hear this! -Arthur
@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
@GOKUSUN-lg2ls
@GOKUSUN-lg2ls 9 ай бұрын
that's super great! it's very very helpful to me
@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
@cimoi2638
@cimoi2638 9 ай бұрын
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 9 ай бұрын
Glad it was helpful! Thanks for watching! - Iñaki
@user-pu9xn1fw5m
@user-pu9xn1fw5m 3 жыл бұрын
Thank you so much. Your videos have been so helpful!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Yay, we're glad to know that we positively impacted your learning journey. The best is yet to come for 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
@abymathew575
@abymathew575 4 жыл бұрын
Your coredata tutorial is the best and simple clean tutorials I’ve ever experienced.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Wow, thanks! - Kat
@user-gb1uj3zw6o
@user-gb1uj3zw6o 2 жыл бұрын
Such a great tutorial! Thank you so much!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You are so welcome! Happy to help! -Arthur
@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
@shawnfrank5303
@shawnfrank5303 3 жыл бұрын
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 3 жыл бұрын
"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"
@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
@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
@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-uw4qv6vy6n
@user-uw4qv6vy6n 3 жыл бұрын
perfect video about core data!!! Thank you
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Priviet! Thanks for learning with us. Spasiba! :-) -Arthur
@programming5523
@programming5523 2 жыл бұрын
Chris is the best out their his explaining is very clear and precise.Thanks for all the useful content.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you for the kind words! :) - Pat
@citywitt3202
@citywitt3202 4 жыл бұрын
Where has this been all my life :D
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Welcome to CodeWithChris! 😀 - Kat
@aleksejsigaj1373
@aleksejsigaj1373 3 жыл бұрын
Thank you for this video!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
You're welcome, Alexey! :-) -Arthur
@gauravkalele7491
@gauravkalele7491 Жыл бұрын
Dude you are awesome ! Very very helpful videos !
@CodeWithChris
@CodeWithChris Жыл бұрын
Glad you like them! - Pat
@ivanlyaskovets6804
@ivanlyaskovets6804 Жыл бұрын
Awesome tutorial! Thanks a lot!
@CodeWithChris
@CodeWithChris Жыл бұрын
You're welcome! :) - Pat
@nikitaalymov5880
@nikitaalymov5880 2 жыл бұрын
Excellent lesson! Thank you for this video :)
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you for watching! - Pat
@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
@ariangmohamadi3251
@ariangmohamadi3251 3 жыл бұрын
thank you very much , it help me a lot
@CodeWithChris
@CodeWithChris 3 жыл бұрын
You are so welcome! Keep on going! :-) -Arthur
@edwardjob1437
@edwardjob1437 2 жыл бұрын
Really great tutorial! Explained very clearly👍
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you so much, Edward! :-) -Arthur
@olegsharov6605
@olegsharov6605 Жыл бұрын
Chris, you are great teacher! Thank you for your effort
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for the kind words! :) - Pat
@sergiopuccini
@sergiopuccini 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
@jesuscalleja8537
@jesuscalleja8537 3 жыл бұрын
Thanks a lot!, really helpful :D !
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Glad to know that we have helped you, Jesus! :-) -Arthur
@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
@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
@bigmtnstudio
@bigmtnstudio 2 жыл бұрын
Awesome tutorial. Thanks, Chris!!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for everything, Mark!
@marinaalecriim
@marinaalecriim 2 жыл бұрын
thank you so much for this tutorial! you made all this content to be so clear! =)
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Appreciate your support, Marina! We're all cheering for you! -Arthur
@cheesecake2281
@cheesecake2281 3 жыл бұрын
Great tutorial. cheers
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Happy to know this. Thank 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
@CoachTatecom
@CoachTatecom 3 жыл бұрын
well done mate. thank you.
@CodeWithChris
@CodeWithChris 3 жыл бұрын
You're so kind! Thanks a ton for your support! :-) -Arthur
@ahmadkhattab5700
@ahmadkhattab5700 3 жыл бұрын
This is a great video with great explanation much love bro
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Much love to you too, Ahmad! Salaam! -Arthur
@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
@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
@pasaninduwaraedirisooriya2008
@pasaninduwaraedirisooriya2008 3 жыл бұрын
The best explanation as always...
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Wow, so humbling. Thank you for learning with us! -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
@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.
@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?
@flexyfishy8078
@flexyfishy8078 4 жыл бұрын
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
@muzammalabdulghafoor6418
@muzammalabdulghafoor6418 2 жыл бұрын
Great video
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you! @AdrienVillez
@kimtipatel7
@kimtipatel7 2 жыл бұрын
Really nicely explained new version of Coredata
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you! - Pat
@maks8835
@maks8835 3 жыл бұрын
excellent work
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Thanks for your kindness! Have fun! -Arthur
@BeWithNarendar
@BeWithNarendar 3 жыл бұрын
Perfect !!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Cheers, Narendar! Keep on learning with us! -Arthur
@willasaskara
@willasaskara 3 жыл бұрын
thanks a lot!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
You are so welcome, Willa! Have a great day! :-) -Arthur
@ponmaniraja7050
@ponmaniraja7050 3 жыл бұрын
Crystal and clear explanation. Thanks Bro. If possible pls post video about create multiple NSManagedObjectContext.
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Thank you so much for your kind words! :-) -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
@jorgecastilleja5356
@jorgecastilleja5356 Жыл бұрын
Thank you
@CodeWithChris
@CodeWithChris Жыл бұрын
You're welcome! - Pat
@manojguggilla2288
@manojguggilla2288 4 ай бұрын
I appreciate your reply for every Comment
@meichelrendio3510
@meichelrendio3510 3 жыл бұрын
nice explanation
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Thanks for the kind words, Michael! :-) -Arthur
@user-zi5xh8cb2u
@user-zi5xh8cb2u 3 жыл бұрын
You're GOD!!! Thank you so much!!!!!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
You are so welcome! :-) Keep on having fun!
@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"
@slavasmirnov9585
@slavasmirnov9585 3 жыл бұрын
Great!!!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Cheers! -Arthur
@user-ke9bo2fj8x
@user-ke9bo2fj8x 5 ай бұрын
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!
@user-hs8ef2lz3x
@user-hs8ef2lz3x 6 ай бұрын
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.
@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
@sheikhbayazid1778
@sheikhbayazid1778 4 жыл бұрын
it would be great if you’d make a same video for swiftui
@merylt972
@merylt972 4 жыл бұрын
I agree that would be awesome
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, you can add your requests here: cwc.to/request :) - Kat
@luisr2033
@luisr2033 4 жыл бұрын
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 4 жыл бұрын
You can get images from pixabay.com, unsplash, or icons8.com - Kat
@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"
@yimkongyan
@yimkongyan 3 жыл бұрын
nice video
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Cheers! :-) -Arthur
@edwincreator2855
@edwincreator2855 3 жыл бұрын
Thanks
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Welcome! - Kat
@monicamarineoffice7243
@monicamarineoffice7243 4 жыл бұрын
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 4 жыл бұрын
We use Figma/Sketch for editing images and Camtasia for videos. - Kat
@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 "
@MRGambler9933
@MRGambler9933 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
@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"
@hustlas4ever
@hustlas4ever 3 жыл бұрын
Thank you so much!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
You are so welcome, Mark! Keep on having fun! :-) -Arthur
@juniorfolarin4306
@juniorfolarin4306 13 күн бұрын
nice
@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
@abduls4321
@abduls4321 4 жыл бұрын
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 4 жыл бұрын
Hey there, you've come to the right channel. Start with this Beginner playlist bit.ly/BeginnersPlaylist - Kat
@danielcrompton7818
@danielcrompton7818 Жыл бұрын
So am I right core data is some kind of ORM (object relational mapping) service?
@rupu1372
@rupu1372 4 жыл бұрын
Should i watch this video or your previous core data video series?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
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
@raktimdey381
@raktimdey381 4 жыл бұрын
I just finished ur war game tutorial and basic swift. Should i learn it now?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Yes, you can watch this next. :) - Kat
@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
@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 3 жыл бұрын
"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"
@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!!
@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!
@daylightkiller2611
@daylightkiller2611 4 жыл бұрын
Hello Chris, Please what software do you use to create the animations in your videos. And which software do you use to create your thumbnail. Please answer
@CodeWithChris
@CodeWithChris 4 жыл бұрын
We use Figma/Sketch for editing images and Camtasia for videos. - Kat
@daylightkiller2611
@daylightkiller2611 4 жыл бұрын
@@CodeWithChris Thanks Chris
@daylightkiller2611
@daylightkiller2611 4 жыл бұрын
@@CodeWithChris Please Chris is there a way you can do a tutorial on Camtasia I Know is not part of iOS App development.
@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
@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
@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
@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"
@w0mblemania
@w0mblemania 2 жыл бұрын
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 2 жыл бұрын
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
@donaldsdery1660
@donaldsdery1660 2 жыл бұрын
nice
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you! -Arthur
@jscorpio1987
@jscorpio1987 4 жыл бұрын
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 2 жыл бұрын
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.
@iYousef911
@iYousef911 4 жыл бұрын
Can you make in app purchase using SwiftUI not UIKit please
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Hello. the libraries to be used should be generally the same, the main difference would be how data is displayed and afterwards, but basically it uses the same base framework (UIKit) - Francis
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 42 М.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 67 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 25 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 8 МЛН
Intro to Databases (MySQL, CloudKit, Firebase, Core Data, Realm)
20:43
What's going on with Windows Laptops?
10:30
Marques Brownlee
Рет қаралды 2,6 МЛН
What is JSON - JSON Parsing in Swift
24:15
CodeWithChris
Рет қаралды 73 М.
№38 - Обработка ошибок в Swift | Работай с Error как ПРО!
1:08:58
CoreData в Swift. Разработка приложений
47:55
simpleDEV. Swift c нуля до бесконечности
Рет қаралды 8 М.
How To Work With Any API (API Tutorial using URL Requests)
27:07
CodeWithChris
Рет қаралды 124 М.
Data Flow in a SwiftUI App
33:15
CodeWithChris
Рет қаралды 53 М.
Protocol Buffers Crash Course
36:07
Hussein Nasser
Рет қаралды 240 М.
Modding TikTok to only show Cat Videos
29:12
Bryce Bostwick
Рет қаралды 91 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 67 МЛН