Core Data To Do List App for Beginners (Xcode 12, Swift 5, iOS Basics) - Development

  Рет қаралды 78,615

iOS Academy

iOS Academy

Күн бұрын

In this video we will learn the basics of core data to create a full functional to do list app. This will include creating, updating, getting, and deleting data. We will be working with Xcode 12 and Swift 5. A database is crucial to many apps nowadays - master it for your own app.
💻 Source Code: / iosacademy
🎥 Subscribe for more: kzfaq.info?su...
😎 Like my teaching style? Check out some of my most popular courses!: courses.iosacademy.io
👉🏼 Connect (personal LinkedIn) / afrazsiddiqui
🚀 Follow on LinkedIn / ios-academy
#swift #coredata #iOSDeveloper
Join this channel to get access to perks, code, groups, and more:
/ @iosacademy
Join the iOS Academy Community: iosacademy.io/
** Get Skillshare free for 2 Months and learn iOS
www.skillshare.com/r/user/afraz
** Manage all your investments from app earnings on Betterment!
bit.ly/3eBwlI9
** Grow your own KZfaq tech channel with TubeBuddy:
www.tubebuddy.com/iosacademy

Пікірлер: 123
@midnight_appetite
@midnight_appetite Жыл бұрын
I've been an iOS engineer now for a bit over two years and I just want to say... thank you. Without your help I wouldn't be where I am today. Thanks man.
@iOSAcademy
@iOSAcademy 7 ай бұрын
You're welcome!
@sammusso8073
@sammusso8073 3 жыл бұрын
this was a very solid introduction to saving, editing, creating, and deleting items with CoreData
@rohanpatel9797
@rohanpatel9797 3 жыл бұрын
This is what I have been looking for for I don't know how long. Thank you soo much. You just gained your biggest fan and subscriber. I can't thank you enough for this. I have been searching for a quick and easy way to edit core data entry/record for the past month. Even apple documentation doesn't have a short and concise way of doing it. You are a life saver!!! tysm!!!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcone!
@bald_agent_smith
@bald_agent_smith Жыл бұрын
So veeeeerrryy straight to the point and educative! Thanx!!!
@clipped3411
@clipped3411 3 жыл бұрын
I love this man 👍🏾👍🏾👍🏾👍🏾 keep me coming
@AdailtonSilvaSP
@AdailtonSilvaSP 2 жыл бұрын
Tks for the video!! one more time your videos were very helpful to me.
@linkx1134
@linkx1134 3 жыл бұрын
Hi, great intro to CoreData, thanks for the guide and clear explanation!
@devonflowers7156
@devonflowers7156 3 жыл бұрын
Hey, soon to be SWE grad here. Know Android studio well enough, but I'm trying to make an IOS app over this break just to learn how to develop in swift as well. Your videos have been the best at helping me turn my ideas into working code. Thanks a ton, I'll be subbing and coming back for plenty more over the next 3 weeks!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Glad I can help!
@bigamerico
@bigamerico 3 жыл бұрын
the best introduction to core data CRUD
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@relax_music668
@relax_music668 11 ай бұрын
感谢作者的分享,非常有用🎉🎉
@jamesnwankwo9156
@jamesnwankwo9156 3 жыл бұрын
This video is excellent, short and straight to the point and at the same time, very educative. Thank you!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome!
@devayz9305
@devayz9305 3 жыл бұрын
Essential!. A real definition of scrum master
@shrikantwalekar4057
@shrikantwalekar4057 3 жыл бұрын
this video is exact what i was searching for, thanks man
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome!
@JackMcDonnell91
@JackMcDonnell91 Жыл бұрын
this was my first video of yours! I'm brand new to swift and xcode so this was a steep learning curve. My mission was to basically copy everything I saw from you and try and figure out the errors myself, learn some of the why along the way. ChatGPT was great for helping me find my typos and other errors. As far as what most of the functions do and why they need to be written as they are is still lost on me, but i'm sure you'll have other videos on that. Thanks for making this though, the start of my Swift journey!
@iOSAcademy
@iOSAcademy Жыл бұрын
Thanks for watching & great feedback. Check out my swift beginners playlist
@friendlyman1422
@friendlyman1422 8 ай бұрын
How is it going, man?
@richardsommer4204
@richardsommer4204 Жыл бұрын
Nice work! Thanks so much!! What about the check marks shown in the opening images?
@apbrandom
@apbrandom Жыл бұрын
Great!
@bitsurfer0101
@bitsurfer0101 3 жыл бұрын
The way you do things programmatically makes the flow more visible especially for the AppDelegate.
@kennygabbara
@kennygabbara 3 жыл бұрын
I try to avoid using storyboards and nibs as much as possible which is why I love his videos. Personally I delete the main storyboard completely but I guess that's just a matter of preference.
@hypernikomen
@hypernikomen Жыл бұрын
Great video, thank you! You are really good at explaining programming stuff.
@iOSAcademy
@iOSAcademy Жыл бұрын
Glad it was helpful!
@cirjeex6412
@cirjeex6412 12 күн бұрын
If you read this, can you please do a part two for this video where you read saved items from another view controller?
@rudolphhock1155
@rudolphhock1155 3 жыл бұрын
Nice memory leak reference, I needed to know about that. Liked.
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@ericsokoine
@ericsokoine 3 жыл бұрын
Great video man. This is going to help out with my first app!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks
@irvinakocan7859
@irvinakocan7859 5 ай бұрын
such a great tutorial! thank you very much! 🤗🥰
@iOSAcademy
@iOSAcademy 5 ай бұрын
Your welcome
@PiiiPheCarrasco
@PiiiPheCarrasco 3 жыл бұрын
thanks so much to share your knowledges :D
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome
@ThisDaniYT
@ThisDaniYT 11 ай бұрын
Thank you for such a nice and calm video, man. I'm an Android developer, trying to learn the basics of of iOS with swift. I can only advice you to increase the volume; headphones were mandatory due to the low level. Otherwise, everything was nice. I'll stay around.
@baumannmaurice195
@baumannmaurice195 3 жыл бұрын
Nice video. Continue that. But I tried that on my own exactly like zu did it but when I try to tip the code it just shows errors and the autocomplete don’t do his job. One question: do I’ve to do create the packages ToDoListItem+CoreData... stuff ? Or can I do it also without them/this ?
@meHilo610
@meHilo610 Жыл бұрын
hello i followed your tutorial. just want to know if you have a follow up video about one to many relation in core data
@Mitchbaum
@Mitchbaum 3 жыл бұрын
could you make a video explaining how to implement core data into an existing project that uses user defaults? by replacing user defaults with core data?
@ashleydube3710
@ashleydube3710 3 жыл бұрын
Hie man, a new follower of this channel from South Africa. Thanx for lesson, works well for the current app I'm building
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks
@youtub4444
@youtub4444 3 жыл бұрын
Hi! Could you please tell me or show how to search data from firebase table view in swift? Thank you i will appreciate, if you do so.
@guvenkaranfil
@guvenkaranfil 3 жыл бұрын
Hi! Great introduction to Core Data for beginners
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@abdulrahmanalhaftaa5764
@abdulrahmanalhaftaa5764 3 жыл бұрын
u r the best , thank u ♥️
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thank you!
@md.tipusultan9629
@md.tipusultan9629 2 жыл бұрын
Thank you brother
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@whitelotusdeveloper9105
@whitelotusdeveloper9105 Жыл бұрын
gap yo bratan, yaxshi chiqibdi👍👍👍
@iOSAcademy
@iOSAcademy Жыл бұрын
Thanks
@jaskarangrewal8656
@jaskarangrewal8656 Жыл бұрын
What to do to display the date and time below the text like shown in the starting of the video ?
@somebody5106
@somebody5106 2 жыл бұрын
Nice, but Can you show how to perform all those functions when you have multiple text fields on a view controller ?
@iSubhoo
@iSubhoo 2 ай бұрын
Thank You Sir, Can you please make a Video where we can save a Structure(JSON Data) in CoreData/Document Directory. Specially I want to know how we can convert the structure in to data and again fetct them into real structure. Thank you.
@zion3762
@zion3762 3 жыл бұрын
thx😊
@iOSAcademy
@iOSAcademy 3 жыл бұрын
your welcome
@abhijeetboid57
@abhijeetboid57 3 жыл бұрын
I searched a lot about how to place that date below the name but couldn't find any. Could you please assist how to add it there with that size?
@flamydota2propov103
@flamydota2propov103 3 жыл бұрын
Hi, I have a question. When I delete the item from the list and it shows error like this Thread 1: "-[ToDoListItem.ViewController delete:]: unrecognized selector sent to instance 0x7f9cc6d14850"
@niktechno_official_misc
@niktechno_official_misc 2 жыл бұрын
Nice tutorial! But when I edited the item, it creates the new item instead of editing the existing one. How to fix this???
@chubakv
@chubakv 3 жыл бұрын
Быстро, просто, ОТЛИЧНО! Огромное спасибо!
@shadman19299
@shadman19299 3 жыл бұрын
Can I actually call the createItem func from another view controller? If I can how can I do that ?
@runningman7001
@runningman7001 4 ай бұрын
Hi! How do I add time to each event? Why don't we use a variable “date”?
@runningman7001
@runningman7001 2 жыл бұрын
In which variable are all values stored?
@laurapotter6321
@laurapotter6321 2 жыл бұрын
Hi, will the data persist when you delete and reinstall the app?
@burkaytez4947
@burkaytez4947 Жыл бұрын
With IOS 16 we get this Error Code on console : [Assert] UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly. Inconsistent configuration may cause problems. Any fix for this ?
@victorriurean
@victorriurean 2 жыл бұрын
nice
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@islombabaev
@islombabaev 3 жыл бұрын
Dude could u do some tutorial on how to write a todo list without storyboard (plain UI written fully in code) and with navigations and etc. Ty!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Yes, absolutely. Like, sub and stay tuned
@duyhieunguyen3902
@duyhieunguyen3902 2 жыл бұрын
Hi iOS Academy, Can you explain for me why I have an error: Value of type 'AppDelegate' has no member 'persistentContainer' ? Thank you
@etelot
@etelot Жыл бұрын
Hey, I am new to ios/swift and all that, I am getting "Cannot find type 'AppDelegate' in scope" and the internet is not helping me finding the right solution. would you please?
@connorsterne4128
@connorsterne4128 2 жыл бұрын
is AppDelegate.swift supposed to be automatically created? I don't have it. how can we do this without it?
@peterjonsson8762
@peterjonsson8762 2 жыл бұрын
I want multiple lines of information. Can you show us how to ?
@foojiajieng7428
@foojiajieng7428 3 жыл бұрын
Your video are great but aren't you going to show how to display the time (createAt) below the todo list?
@ericzero1621
@ericzero1621 2 жыл бұрын
Hey, if have have solutions how to display time, share in comment
@bitsurfer0101
@bitsurfer0101 3 жыл бұрын
Does anyone feel that the audio is a bit low?
@barrywong3503
@barrywong3503 3 жыл бұрын
Could you use Core Data to store images? I'm thinking I'd have to convert the UIImage to a NSData object?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Yes, you can convert then store
@CaronKim
@CaronKim 3 жыл бұрын
How can i copy just 1 line in xcode? I mean Command
@tientranminh9564
@tientranminh9564 3 жыл бұрын
Can you make a video about using Realm or SQLite database, thanks you so much
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Yes! Ive actually got a realm video already. Search for iOS Academy realm!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
PS: I LOVE realm
@protogionlastname6003
@protogionlastname6003 5 ай бұрын
Thanks for the content, but the video quality at max resolution is atrocious, it's hard to distinguish letters
@wyattmurr9933
@wyattmurr9933 3 жыл бұрын
Amazing, thank you! Are we allowed to use your code for our own app?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome & absolutely
@wyattmurr9933
@wyattmurr9933 3 жыл бұрын
@@iOSAcademy Thank you! By the way, I just want to say that you're channel is so amazing for beginners like me. I had no idea how to use xcode let alone how to code, but your videos made it very easy. Thank you so much from the bottom of my heart.
@wyattmurr9933
@wyattmurr9933 3 жыл бұрын
At 7:25 when I added func deleteItem(item: ToDoListItem) {, it gives me an error saying, "Cannot find type 'ToDoListitem' in scope". I've tried twice with a new project in case I was missing something, but that same error keeps happening. Any idea what I'm doing wrong?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Did you declare the item object?
@wyattmurr9933
@wyattmurr9933 3 жыл бұрын
@@iOSAcademy How do I check if I did? I added it as an entity in CoreDataExample.xcdatamodel, but I don't know if I declared it or not.
@pataratananvisitserngtraku3928
@pataratananvisitserngtraku3928 2 жыл бұрын
What if I want to insert more rows of data into db? What should I change in didTapAdd function? let alert = UIAlertController(title: "New Program", message: "Enter New Program", preferredStyle: .alert) alert.addTextField(configurationHandler: nil) alert.addAction(UIAlertAction(title: "Submit", style: .cancel, handler: {[weak self] _ in guard let field = alert.textFields?.first, let text = field.text, //Not sure what do I need to change around here !text.isEmpty else{ return } //I've edited createItem function already self?.createItem(categories: text, exercises: text, repetitions: text, sets: text, weight: text) })) present(alert, animated: true)
@somyarathee
@somyarathee 3 жыл бұрын
Hi I have a question: When creating the project I dont see the classes AppDelegate, SceneDelegate etc/.
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Bc you created it with the swiftui option
@somyarathee
@somyarathee 3 жыл бұрын
@@iOSAcademy how can i change it so that i get the same template as yours??
@gsillis
@gsillis 3 жыл бұрын
@@somyarathee you need to create a project using uikit instead of swiftui
@hakankumdakc9233
@hakankumdakc9233 3 жыл бұрын
I actually got success by writing these block. let fetchRequest: NSFetchRequest? fetchRequest = Habit.fetchRequest() fetchRequest?.returnsObjectsAsFaults = false let items = try context.fetch(fetchRequest!) as? [ToDoListItem]
@abhijeetboid57
@abhijeetboid57 3 жыл бұрын
26:20 How did you change it to dark mode?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Command shift a
@abhijeetboid57
@abhijeetboid57 3 жыл бұрын
@@iOSAcademy Thank you :) Your videos are so helpful, easier to understand. Kudos to you buddy!
@dugrut1325
@dugrut1325 2 жыл бұрын
Hello, you're volume is so low, I'm cranked to the max.
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks for the feedback
@sachinkakde2004
@sachinkakde2004 5 ай бұрын
28:32 review
@andreymomot7599
@andreymomot7599 2 жыл бұрын
👍🏻
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@andyal868
@andyal868 3 жыл бұрын
It gives me error: Can not find type 'ToDoListItem' in scope
@neilbhosle2841
@neilbhosle2841 3 жыл бұрын
Even I'm getting this issue, did you get any answer?
@AD-vd1bh
@AD-vd1bh 3 жыл бұрын
Just try with xCode 12.1 or xCode 12.0 version you won't see errors, I'm not sure what is the issue with xCode 12.4 version, i see same errors.
@foojiajieng7428
@foojiajieng7428 3 жыл бұрын
Same problem here, but when I just run it, the error will gone. I think it just a bug?
@neilbhosle2841
@neilbhosle2841 3 жыл бұрын
@@foojiajieng7428 I just created a separate folder by this name and added these files into it and the error was gone
@didami7099
@didami7099 3 жыл бұрын
10:45
@br.kelvin1901
@br.kelvin1901 3 жыл бұрын
Hi
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Hi there
@ran6110
@ran6110 3 жыл бұрын
Fully functional?!? But you can’t re-arrange the list. My fully functional version let’s me shuffle the list and asks me to update the date/time to fit within the new location. But you’re the expert so what do I know...
@ozgurshow
@ozgurshow 3 жыл бұрын
all of udemy and youtube tutorials very cursory. they dont care design, functionality or logic. Basically, they are all trash.
@kironet
@kironet 3 жыл бұрын
This video is not about "How to make a TODO List in Swift". This video is about CoreData. ;)
@dugrut1325
@dugrut1325 2 жыл бұрын
... GO AHEAD ...
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Yep, i say it a lot lol
@theamazingteam3064
@theamazingteam3064 3 жыл бұрын
Tried to follow your steps but with the lack of information you were given about tableviews and all of the code i couldnt manage to understand a thing.... You should really focus on explaining every line you wrote for us begginers to really understand-
@yourgflikesit
@yourgflikesit Жыл бұрын
But how to do migrations?
iOS Core Data QuickStart Tutorial 2020
1:10:58
CodeWithChris
Рет қаралды 100 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 104 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН
What's going on with Windows Laptops?
10:30
Marques Brownlee
Рет қаралды 2,7 МЛН
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Play: The Secret Weapon for iOS Devs & Designers
10:12
Sean Allen
Рет қаралды 25 М.
Todo List using Core Data SwiftUI Xcode Example Tutorial | Part 1
18:14
Core Data Tutorial - Lesson 1: Core Data Basics
6:47
CodeWithChris
Рет қаралды 64 М.
Introduction to SwiftData - iOS Development
12:51
iOS Academy
Рет қаралды 9 М.
Intro to Programmatic UI - UIKit | Xcode 14
17:39
Sean Allen
Рет қаралды 48 М.
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 42 М.