How To Create A To Do List App In Xcode 8 (Swift 3.0)

  Рет қаралды 91,325

The Swift Guy

The Swift Guy

Күн бұрын

Пікірлер: 215
@IvoTsochev
@IvoTsochev 6 жыл бұрын
Great tutorial man! UITableViewCellStyle has been renamed to UITableViewCell.CellStyle and UITableViewCellEditingStyle has been renamed to UITableViewCell.EditingStyle
@SEVEN5011
@SEVEN5011 7 жыл бұрын
I am Japanese. I was looking for like this video but there were not Japanese video. So it is really helpful for me. I created toDoList thanks to you. Thank you again!!!!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that you were able to make a to do list. Good job!
@baotony1662
@baotony1662 7 жыл бұрын
I wiill help. I know japanese a lot of japanese like Mitsubishi, toyota, yamaha, Suzuki, sushi, versase, valentino, prada...
@AlexanderBurton7
@AlexanderBurton7 6 жыл бұрын
Thank you for creating this resource! I was able to follow along without having ever built a Swift project and get a functional project up in minutes!
@5lowburner
@5lowburner 4 жыл бұрын
Outstanding, thank you. It still works fine in Feb 2020 with Swift 5.x, just needing a couple of minor changes for which XCode will prompt you.
@timmy334
@timmy334 7 жыл бұрын
Just the video I was looking for! I have plans for my own to-do list and notes app. We'll see what I get going. But, this helped lot. Thanks!
@timmyfangsfanpage6649
@timmyfangsfanpage6649 2 жыл бұрын
Hey Timmy Fangs! IM A HUUUUUUGGGGGEEEE FAN!!!!!!!!! Crazy to see you on here! Hope you can upload more covers on Saturday Night! Beautiful composition, and I love Rina's recital! Please do more! Maybe about 'Jiglma' by Joe?
@ArthurMasonGeauxLSU
@ArthurMasonGeauxLSU 7 жыл бұрын
Great tutorial! I was coding on my old Mac (2008 macbook pro) and i'm trying to make the move to Swift 8 since i've got a new mac finally. Keep up the good work
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Awesome man! Glad to hear that you are enjoying the tutorials:)
@chineseteacherclint
@chineseteacherclint 7 жыл бұрын
Awesome tutorial, keep going, you're educating the whole world, man.
@jasper5016
@jasper5016 7 жыл бұрын
I like your tutorials. They are not "well" explained but easy to understand. I hope you will upload new tutorials with swift 4.
@lifeofh3073
@lifeofh3073 7 жыл бұрын
The video was great and I am very thankful for it. I am having one problem though. The swipe to delete feature is not working for me. I compared to what you had and it matches. I am using this in an app that I am building so maybe it is something that is in the view controller that is throwing things off? Thanks again for a great video!
@Muhammed.Yaseen
@Muhammed.Yaseen 6 жыл бұрын
4:55 - *[Easier method]* For everyone watching in 2018, Xcode 9 shows error when we add the UITableViewDelegate and UITableViewDatasource in 3:25. Click the error and click *Fix* . *The two functions that he copied will come automatically.* You are Welcome! 88888
@LouisBurkhardt
@LouisBurkhardt 7 жыл бұрын
Thanks so much for a clear tutorial. Learned much. Good job!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Super glad to hear that Louis! Thank you for watching:)
@joes3125
@joes3125 6 жыл бұрын
Hi, Great video! is there a simple way to actually edit an item once you've added it to the to do list
@taylorglenn6152
@taylorglenn6152 7 жыл бұрын
Great video & very helpful! My only problem was how quickly you move and sometimes you do not explain which buttons to press. Had to rewind probably over 100 times during this video to catch the small things.
@azklinok
@azklinok 7 жыл бұрын
These tutorials are really helpful, thanks a lot!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that!
@Sadia_AustralianJourneys
@Sadia_AustralianJourneys 7 жыл бұрын
Ur videos are just awesome .. I learned so many things from them ... thanks for doing this great job
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thank you! Super glad to hear that you are finding the videos to be helpful:)
@thomaspenmancooper
@thomaspenmancooper 7 жыл бұрын
Hi, Thank you very much for your videos. It's very impressive what you do and I thank you for it. I've watched a few of your tableview videos as well as the series on Firebase. I was wondering if there's a simple way to display the data or list in reverse. As in newest added is displayed at the top instead of bottom. Thanks!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
If I remember correctly, we added all of the firebase data into an array before we displayed it. In that case, you simply reverse the array before displaying it. I believe it is .reverse()
@thomaspenmancooper
@thomaspenmancooper 7 жыл бұрын
Ah yes. Do you mean like this: if let item = snapshot.value as? String { self.myList.reverse() self.myList.append(item) self.myTableView.reloadData() } I actually tried this and it reverses it, but then it reverses what was reversed when you save a new item so it flops back and fourth inconsistently. Is this what you meant by adding .reverse() or am I adding to the wrong thing? If no maybe a collection view would be best to reach my goal?
@thomaspenmancooper
@thomaspenmancooper 7 жыл бұрын
I figured it out. And in case anyone is having the same trouble I just wasn't adding reversed() to the correct place. Here's the correct code if you want to reverse your ordering of items: let cell = tableView.dequeueReusableCell(withIdentifier: "cell"); cell?.textLabel?.text = myList.reversed()[indexPath.row]
@kevgoenadi
@kevgoenadi 7 жыл бұрын
Hi, will this app keep the data when you go home, close app, and run again? if not, which tutorials should I watch to keep those data? THANKS btw the tutorial is super awesome! keep up!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thank you! Glad to hear that you are enjoying them:) I would encourage you to take a look at core data. That will enable you to save the data and retrieve them later:)
@shubhpatni2123
@shubhpatni2123 7 жыл бұрын
please add user default method so that we can save our list. please make another video with this update, I really want to do it and I don't know how to do it thank you very much
@goico_zfr
@goico_zfr 4 жыл бұрын
Awesome! How can I save the data with UserDefaults? Can you make a tutorial explaining this?
@filaur6672
@filaur6672 7 жыл бұрын
Hi, huge thank you !!!! Question: why sometimes your are using this code let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) or this one let cell = UITableViewCell(style: .default, reuseIdentifier: "cell") ? is that important?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
It really has depended upon my mood there and then. No great consideration:) Only sometimes, when I use the first function that you outline, I get some errors. Then I will replace it with the second one. Mostly I use the second one, and then I use the first one when I am casting my cell to a custom table view cell
@filaur6672
@filaur6672 7 жыл бұрын
Thank you smart Swift Guy )
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
haha, you're welcome;)
@brianschermerhorn7294
@brianschermerhorn7294 7 жыл бұрын
TO CREATE THE BLUE ARROW, when he drags from the TableView to the controller, you need to hold CTRL down when you left click
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thanks for adding that:)
@JigloJerry
@JigloJerry 6 жыл бұрын
You're a life saver. I didn't know how to do it! Thanks!
@scarletstark2201
@scarletstark2201 8 жыл бұрын
Great video! The swipe cell button is awesome. Can you do a video on the finger print login feature?
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Jup, is is:) Will write touch ID up on the videos-ideas list;)
@scarletstark2201
@scarletstark2201 8 жыл бұрын
The Swift Guy Cool. Thanks for the tutorials!
@jeyosman1
@jeyosman1 8 жыл бұрын
Thanks for your nice video. I want to know if user enters no next and empty cell is created. How can you avoid empty cell created?
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Simply add an if statement. Only run the User-creation commando if input-text != ""
@perezwillie-nwobu3269
@perezwillie-nwobu3269 7 жыл бұрын
can you have a table view and a SideView at the same time/ in the same ViewController?, if yes, Which has to go first?
@AbdullahJirjees
@AbdullahJirjees 5 жыл бұрын
Hello I need your help please What I am doing is select date + insert data into text field then press submit to be pushed into TableViewController to display in TableViewCell in Labels, the issue is I cannot figure out how to do that, so every time you pick the date and the data and press submit it must sort in the tableviewcontroller in new tableviewcell.
@renederv
@renederv 5 жыл бұрын
Hey guys, when should I use single view and when something else like TappedApp? Lets say I need a multi view app with segue but I also need a toDo list. Should I pick singleView? Or TappedApp? Or something different? Thanks for helping :)
@visakeswaran3620
@visakeswaran3620 7 жыл бұрын
Can you please share how you learnt IOS development, I mean how was your learning curve like and what mistakes should be avoided ?
@vladimirshevela8928
@vladimirshevela8928 8 жыл бұрын
Will u make some lessons about SWIFT(The most usable topics)?
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Thank you for your comment! What exactly do you mean?
@vladimirshevela8928
@vladimirshevela8928 8 жыл бұрын
I meant wil u make some videos about swift as a lang. without projects just playground
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Great idea! I will make sure to do that:) Expect it next week
@shrishtiagarwal007
@shrishtiagarwal007 7 жыл бұрын
Thanks for the wonderful videos, helping me a lot!! But i have a problem, after clicking the add item button when i go to the first view, the item doesn't get added, i have followed the video properly and i still can't figure out whats wrong. :(
@fawadsadiqmal4613
@fawadsadiqmal4613 7 жыл бұрын
Facing same problem !!!
@b0red7
@b0red7 4 жыл бұрын
hi ... question ... how can you make a clone of notion or taskade.com ?
@v_f_1142
@v_f_1142 7 жыл бұрын
How would i connect the cell-item with a newly created view, that contains some text the user has specified along with the Todo-Title? I can't do it with the story-board, because i want to be able to create a view as a user. I'd appreciate an answer to my question, and maybe even a video about how to solve it! :)
@landonvago
@landonvago 7 жыл бұрын
what are the limitations of doing it this way over coreData?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Core data will let you save the data permanently. Definitely a recommended implementation:)
@dhwdue8769
@dhwdue8769 5 жыл бұрын
life savior!!
@dayasiri
@dayasiri 8 жыл бұрын
awesome tutorial :-) and i am waiting for object oriented swift
@ivankholod_str
@ivankholod_str 7 жыл бұрын
Swift Guy, thanks from Russia! Your video helpful! Where are you from?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thank you - Norway!:)
@takakakakai
@takakakakai 7 жыл бұрын
Can you explain or perhaps make a video on how to make an app like this that takes multiple text fields and images, and inserts them into a custom tableview cell? Thanks
@darenleong1943
@darenleong1943 7 жыл бұрын
How do you select the list item and go to another view? I have tried using didSelectRowAt with prepareForSegue method, but it only works for a button I added but not for the prototype table cell?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
I would use sisSelectRow, and performSegue
@joedanielsw
@joedanielsw 7 жыл бұрын
Really helpful videos. Thank you so much!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are welcome!:)
@danielhortense1185
@danielhortense1185 6 жыл бұрын
Thank you for the tutorial!
@ahmadqodirov7899
@ahmadqodirov7899 7 жыл бұрын
Hello The Swift guy, thanks a lot for videos, I am having three errors even though I did as you did in video, first one is 1) return (list.count) says Value of tuple type '(String, String, String, String)' has no member 'count' 2) let cell = UITableViewCell (style: UITableViewCellStyle.default, reuseIdentifier: "cell" says Enum element 'default' cannot be referenced as an intance member 3) list.remove (at: indexPath.row) says Value of tuple type '(String, String, String, String)' has no member 'remove' what to do, please help, I am stuck, thanks so much for videos, keep up the good work
@Aieee007
@Aieee007 7 жыл бұрын
what command do you use to search in swift ? btw nice video :)
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad you liked the video! Search for what, for lines of code?
@Aieee007
@Aieee007 7 жыл бұрын
no, when you were in swift and you press cmd + UITableViewCell you search there with something
@TheRambo58
@TheRambo58 7 жыл бұрын
Command + f
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Sorry, forgot to reply. But John gave you the answer:)
@Aieee007
@Aieee007 7 жыл бұрын
no problem, ad thank you !
@KS-ni7vv
@KS-ni7vv 6 жыл бұрын
Thank u, make more videos like that
@kenseifeitan4663
@kenseifeitan4663 4 жыл бұрын
I have some problem on secondvc the list is not identified what should i do
@abrahamkeleta8481
@abrahamkeleta8481 5 жыл бұрын
Is there anyway to reverse the list on the first view?
@volimpia
@volimpia 5 жыл бұрын
Sure. Just add the new element at the beginning of the list array. Instead of list.append(input.text!) put list.insert(input.text!, at:0)
@ohcrazydiamond
@ohcrazydiamond 8 жыл бұрын
Hello, i've noticed that once we quit the app and then we reopen it our new cells completely disappear. Maybe we need to implement core data to make it persistent? Thank you as always
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Yup, you have to choose how you want to build in persistent storage if that is something you want to implement. You can either use UserDefaults (easiest but not recommended), Core Data (tutorial coming out next week) or save it on a server:)
@ohcrazydiamond
@ohcrazydiamond 8 жыл бұрын
The Swift Guy thank you as always!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
No prob;)
@imannaseri3492
@imannaseri3492 6 жыл бұрын
hi guys, I have one more question, actually If I want to update the object that stored in core data, how can I do? thanks
@edstergadget5120
@edstergadget5120 8 жыл бұрын
any good at putting together a camera??
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Do you mean how to import images from a camera, or creating a custom camera view?
@rubenleererentveld4341
@rubenleererentveld4341 7 жыл бұрын
hi! nice vid! I have one probelem with the: override func viewDidAppear(_: animated: Bool) i get the error: override can only be specified on class members. wat do I do?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Have you written it inside the View Controller function? Also make sure that none of your code contains any other errors. You can also try to remove the override, if that works for you
@peteryoon9772
@peteryoon9772 7 жыл бұрын
Hey, amazing vid. I had the same problem with him, and I followed your instructions but I still cannot resolve the problem. I removed the override function inside the view controller function, and it suddenly pops up a 'signal SIGABRT' error for class AppDelegate: UIResponder, UIApplicationDelegate. Help please :(
@imannaseri3492
@imannaseri3492 6 жыл бұрын
that is a nice toturial
@dram120
@dram120 8 жыл бұрын
Encountering a problem: All goes well until entering the code - let cell = UITableViewCell(style: UITableViewCellStyle.default, reuseIdentifier: "cell") - an error message appears, with the word 'default' highlighted, saying "enum element 'default' cannot be referenced as an instance member" What does this mean? I'm pretty sure I've followed everything to the letter up this point. And Google does not give me any answers as to what this means and how to fix it. Thanks!!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Try to use this one instead and see if that helps: let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath)
@PhuongNguyen-kd3cz
@PhuongNguyen-kd3cz 7 жыл бұрын
in this case, i want to copy this text in the list at tableview to the note, how to do that??
@Drizzy_30fps
@Drizzy_30fps 6 жыл бұрын
How do you save the table so it re-populates after you close the app after adding more to the list?
@emiliano259
@emiliano259 7 жыл бұрын
hie can you make video of side bar menu, thanks!!
@NamanPuri
@NamanPuri 8 жыл бұрын
I get a "Thread 1: Breakpoint 1.1" error type of thing at this line: self.list.remove(at: indexPath.row). It does not let me delete an item from the list. What should I do?
@NamanPuri
@NamanPuri 8 жыл бұрын
I get another error in AppDelegate that says "Thread 1: signal SIGABRT". What do I have to do there?
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Make sure that you haven't accidentally placed breakpoints in your code. Removing them should clear the error
@NamanPuri
@NamanPuri 8 жыл бұрын
The Swift Guy ah okay thank you! Great tutorial btw!
@leonkok7088
@leonkok7088 7 жыл бұрын
Hi The Swift Guy, May I ask you a quick question? If you have an APP idea, is it OK to sketch it out on a piece of paper or just build it and figure it out along the way?
@irfan8014
@irfan8014 8 жыл бұрын
Can u tell how to move text field move up when text field Open??? in Xcode 8 and swift 3
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Yes, you can do that. But what I would do is move the texField longer up on the screen, and then make the keyboard disappear when the user either clicks on "return" or outside the keyboard.
@irfan8014
@irfan8014 8 жыл бұрын
yes i do that when we press back button or touch anywhere in screen the keyboard hide automatically. but my text field did not move up when keyboard is shown :( and keyboard hide the text field... if u make a tutorial on this then i shall be thankfull to you. :)
@DidrikHansen
@DidrikHansen 7 жыл бұрын
When i put: var list = ["Buy milk"] under import UiKit to get it to both pages, i get an error... Value of type 'FirstViewController' has no member 'list'... What should i do?
@perezwillie-nwobu3269
@perezwillie-nwobu3269 7 жыл бұрын
what do you mean when you say that your computer is going to melt?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Haha, it had a period where the fans would go to 100% and the computer would overheat in an instant every time a semi-strenuous task would be performed. That is more or less gone now though;)
@ananya5573
@ananya5573 7 жыл бұрын
I tried to access my list variable from the SecondViewController to append things to the list but it marked as an error and said that list wasn't defined in that class... what do I do?
@paolo412
@paolo412 7 жыл бұрын
same
@baharl2981
@baharl2981 6 жыл бұрын
Awesome.. thank you
@rids437
@rids437 7 жыл бұрын
Thank You, its perfect.
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that!
@ianschoenrock2285
@ianschoenrock2285 6 жыл бұрын
Your computer melts when you run it? Did I hear that right? 6:50
@sunwols
@sunwols 7 жыл бұрын
waw great video tq
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad you liked it!
@andrewng2427
@andrewng2427 7 жыл бұрын
How do you create a To Do list that lets you input your own list items?
@facebookjungle7116
@facebookjungle7116 7 жыл бұрын
how do u search
@noneofyourdamnbuisness3484
@noneofyourdamnbuisness3484 5 жыл бұрын
if you could make one in SwiftUI and Xcode 11, thatd be dope
@EchoVids2u
@EchoVids2u 6 жыл бұрын
When I click add item the text doesn't erase and I followed this thing exactly
@gordongaming4086
@gordongaming4086 6 жыл бұрын
i want to inplement this into a project I'm working on but it just does not work
@michaelwinson3438
@michaelwinson3438 7 жыл бұрын
/Users/admin/Desktop/Developer/ToDo/ToDo/FirstViewController.swift:26:39: Type 'UITableViewCell.Type' has no subscript members I encountering this error... can help me out? thanks!
@Foxtrot-Oscar
@Foxtrot-Oscar 7 жыл бұрын
good so far yet i have just lines and no context within the list......ive checked the code character by character but cannot find anything, i started with var list = ("") then later added to the list but all i have is empty lines??
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
make sure that you write it like this: var list:[String] = []
@paulocorreia2607
@paulocorreia2607 7 жыл бұрын
In this case, how i can store the list using User Defaults?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Although UserDefaults isn't the idea solution for storing larger pieces of data (would recommend 'core data'), I have a video on UserDefaults. I would take a look at that!
@nickslobodsky4444
@nickslobodsky4444 6 жыл бұрын
How can i store the list at all ? I mean, when i created the table view list, deleted 2 items, added 2 other items instead, how do i make it stay ? How can i save the changes ?
@amehnn
@amehnn 7 жыл бұрын
i did everything u did mine dosnt work. this part shows an error. let cell = UITableViewCell (style: .default, reuseIdentifier: "cell") cell.textlabel?.text = list[indexPath.row]
@aliridhafazal5971
@aliridhafazal5971 7 жыл бұрын
Hey, I was making a to do list app and at the end you make tableView.reloadData(). It doesn't seem to work for me. Could you help!!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Have you imported the table view as an outlet?
@kevinstevenson5293
@kevinstevenson5293 4 жыл бұрын
If I close the App, and reload it, the list goes back to the original array... how would I keep the updated list?
@kevinstevenson5293
@kevinstevenson5293 4 жыл бұрын
just read down list, now searching core data
@seanmccain1450
@seanmccain1450 7 жыл бұрын
how did you search for the variable at 4:47
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
I held down Cmd while clicking, to get into the class. I searched by performing the command Cmd+F, which will make the search bar appear.
@matthewdooley172
@matthewdooley172 7 жыл бұрын
at 4:35 you clicked on the UITableviewDataSource, but in my code it wont let me?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Make sure to hold down cmd when clicking it. Also make sure that you dont have ANY other errors, which can disable you from doing that. Wow, that was a fast response;)
@matthewdooley172
@matthewdooley172 7 жыл бұрын
ahah yeah cheers
@star40553
@star40553 7 жыл бұрын
After making the list global the following error is to be see value of type 'FirstViewController' has no member 'list'. How do I fix this? Ran through all the code again, no success. The items added in the 2nd view is not be seen in the list.
@urpersonaltroll1
@urpersonaltroll1 7 жыл бұрын
just ran into the same problem. underneath your tableView function, you're gonna have to get rid of the self in front of the list.remove line
@perezwillie-nwobu3269
@perezwillie-nwobu3269 7 жыл бұрын
Why didn't you use userDefaults to save the data so when you close and open the app you still have all the information? and if you were to use UserDefaults, how and where would you use it?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Although you could use UserDefaults, you would ideally use Core Data. This is something that I go over in my Swift course.
@perezwillie-nwobu3269
@perezwillie-nwobu3269 7 жыл бұрын
niceee. whats core data?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Got a video on it;)
@cilvet1
@cilvet1 8 жыл бұрын
Thank you!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
No problem;)
@emilfrier5158
@emilfrier5158 7 жыл бұрын
What if I want to make the new item a clickable cell, so it goes to another viewcontroller if i press it, can I do that?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
That is actually something I will be making a video on!:) However, you want to use didSelectRowAtIndexPath
@emilfrier5158
@emilfrier5158 7 жыл бұрын
thanks, When is the video coming up. Is it something you have planned to be in the nearest future or what? by the way love your videos!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
I will try to get it out on Monday;) (else, it will be Wednesday)
@andreaskalicani8781
@andreaskalicani8781 6 жыл бұрын
import UIKit class SecondViewController: UIViewController { @IBOutlet weak var input: UITextField! @IBAction func additem(_sender: Any) { if(input.text != "") { list.append(input.text!) input.text = "" } } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } } I get a problem wit list.append (input.text!) and it comes a warning that says " use of unresolved identifier "list" what to do ??
@rishabhmudradi9816
@rishabhmudradi9816 7 жыл бұрын
I have an error that says myTableView.reloadData() is a bad instruction. What can I do?
@AliLakrakbi
@AliLakrakbi 7 жыл бұрын
Here is a solution: stackoverflow.com/questions/25986585/reloaddata-fatal-error-unexpectedly-found-nil-while-unwrapping-an-optional-v
@rishabhmudradi9816
@rishabhmudradi9816 7 жыл бұрын
thanks
@alwanammar227
@alwanammar227 7 жыл бұрын
self.list.remove error after the var list moved to global. it says value of "FirstViewController" has no member 'list' any idea?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Did you remove the self. when you made it global?
@alwanammar227
@alwanammar227 7 жыл бұрын
ah i just noticed this notif. yeah, i've deleted self and it did work. thanks mate!
@Notj96
@Notj96 7 жыл бұрын
hey everything is working perfectly untill im going to delete an item then it says thread 1: breakpoint 1.1
@renederv
@renederv 5 жыл бұрын
Hello when I enter a long text and click on add item .. it cuts of the rest of the words - so It just shows one row of text .. I can't see the whole text I added. Someone knows how to solve the problem? Thanks
@infinityjt8480
@infinityjt8480 8 жыл бұрын
At the line "class FirstViewController: UIViewController, UITableViewDelegate, UITableViewDataSource " I get the error: "Type FirstViewController does not conform to protocol 'UITableViewDataSource' What's the problem here?! I did everything like you did..
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
That means that you dont have all the functions that you need in order to create a function table view. Make sure that you have numberOfRows and cellForRowAtIndexPath. You can even try to add numberOfSections.
@rubenleererentveld4341
@rubenleererentveld4341 7 жыл бұрын
And where can I find that??
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Take a look at my video on how to create a table view. That should do it
@rubenleererentveld4341
@rubenleererentveld4341 7 жыл бұрын
hmm I did the same as you did in the vid :/
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Did you take a look at that other video? If you follow that video step by step, does it still not work?
@tranai536
@tranai536 8 жыл бұрын
why am I done this app without UITableViewDelegate?? What is functional UITableViewDelegate??
@tranai536
@tranai536 8 жыл бұрын
Timothy Myers So Can you give me the original youtube channel? He made me down :((
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
As you say, you can absolutely make this app without the delegate, but it is not something that I would recommend. Data source supplies the Table View with the data that we want it to display - hence the name data source. The delegate manages all the physical aspects of the table view - example: height of each cell. I would therefor make it a habit to use it every time you create a table view. Hope that answered your question:)
@lepro0
@lepro0 8 жыл бұрын
Hi, I've done all the work ( til 9:00 ) when I run the code, it doesn't show my list, I just see the First and Second View controller.. any help ?
@malikrivers3295
@malikrivers3295 8 жыл бұрын
Same here. Not sure whats going on...
@lepro0
@lepro0 8 жыл бұрын
Malik Rivers did you try (completely) shutting Xcode then turning back up? That hasn't worked for me but somebody suggested it saying it worked for him.
@malikrivers3295
@malikrivers3295 8 жыл бұрын
I did, no such luck :/
@malikrivers3295
@malikrivers3295 8 жыл бұрын
I'll just watch through it a few more times. I must have missed something.
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
I would try a few things: 1. Make sure that your Tab Bar controller is set to be your initial view controller 2. Make sure that you have placed constraints on the table view 3. Make sure that you have connected the data source and the delegate from the table view to your view controller 4. Added the UITableViewDataSource and the UITableViewDelegate in your ViewController file. 5. Have an array that contains some data 6. Have set up all the table view function correctly, in addition to having defined a prototype cell
@spcrl
@spcrl 7 жыл бұрын
would be better if you explain more and with a lower pace. it's really hard to follow you. and please keep it in mind that we are using xcode wich has 4 - 5 columns and we need time to switch between youtube window and the xcode window while we are listening to you and coding.
@lukee386
@lukee386 7 жыл бұрын
I agree but I usually listen to a bit, then pause then do it etc
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Jup, what Luke says is the best way to do it
@TechnoDLSK12
@TechnoDLSK12 7 жыл бұрын
Simplest tutorial, I followed and added in some of my own features. If you can't follow this, drop out of programming.
@aelhkmm6009
@aelhkmm6009 7 жыл бұрын
Good for you but you don't own programming for you to give advice to drop out. Simply, say nice words or remain silent :D
@AhmedJunaidSP
@AhmedJunaidSP 7 жыл бұрын
Ehsan Ansari watch it on your iphone or anyother smart phone
@Aieee007
@Aieee007 7 жыл бұрын
how do you search for commit in 7:11 ?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
cmd + F
@Aieee007
@Aieee007 7 жыл бұрын
thank you :)
@germanrandom2202
@germanrandom2202 6 жыл бұрын
11:28
@loydvallot6335
@loydvallot6335 8 жыл бұрын
For some reason my list isn't showing up in the simulator.
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
have you placed constraints, connected the datasource and the delegate, implemented all of the table view functions?
@salaarsharif4560
@salaarsharif4560 5 жыл бұрын
any one ever told you you look like Heath Ledger
@mdazar9744
@mdazar9744 6 жыл бұрын
Need zoom in for codes
@77Marius77
@77Marius77 7 жыл бұрын
At 7:36 you write "editingStye". If I try to run the build it says "Use of unresolved identifier `editingStyle´. Could you please help me. Where is editingStyle defined?
@amehnn
@amehnn 7 жыл бұрын
okay i love this. thank you so much, i will make this for my self but please teach me how do i upload this on applestore. i really want to start making small apps like this and upload them on apple store. thank you @theswiftguy
@Cyber_Sandwich
@Cyber_Sandwich 7 жыл бұрын
cant make list global :(
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Have you tried placing the array, outside of the view controller class?
@Cyber_Sandwich
@Cyber_Sandwich 7 жыл бұрын
Yeah, sorry, I just did a very stipid syntax error but its all fine now. Thanks for reply :)
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that!
@TheManiaza
@TheManiaza 7 жыл бұрын
Good
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
thanks!
@play-doh9900
@play-doh9900 3 жыл бұрын
XcodeFeb 2020
@chubbyshady
@chubbyshady 5 жыл бұрын
WHERE IS PETER!!!!
How To Make Countdown Timer App In Xcode 8 (Swift 3.0)
22:27
The Swift Guy
Рет қаралды 38 М.
How To Set Up Local Notifications In Xcode 8 (Swift 3.0)
9:32
The Swift Guy
Рет қаралды 46 М.
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 9 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 54 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 20 МЛН
SwiftUI Fundamentals | FULL COURSE | Beginner Friendly
11:48:41
Sean Allen
Рет қаралды 368 М.
How to Make an App in 8 Days (2024) - Full Walkthrough
3:00:49
CodeWithChris
Рет қаралды 848 М.
How To Use Constraints And Size Classes In xCode 8
14:22
The Swift Guy
Рет қаралды 91 М.
Cloud Computing Course | Learn Cloud Computing Course | Intellipaat
10:10:41
How To Create A TableView In Xcode 8 (Swift 3.0)
6:55
The Swift Guy
Рет қаралды 121 М.
Build a Realtime Chat App in React Native (tutorial for beginners) 🔴
3:49:50
How To Make A Quiz App In xCode 8 (Swift 3.0)
22:23
The Swift Guy
Рет қаралды 74 М.
Data Analysis with Python for Excel Users - Full Course
3:57:46
freeCodeCamp.org
Рет қаралды 3 МЛН
Build a full stack UBER EATS clone - 3/5 Days Challenge  🔴
3:59:46
notJust․dev
Рет қаралды 455 М.
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 9 МЛН