How to Create TableView in Xcode 15 (Swift 5)
HTML-код
- Опубликовано: 24 июл 2024
- In this video we will learn how to create a tableview in swift for beginners.
#swift #tableview #beginners
💻 Source Code: / iosacademy
🎥 Subscribe for more: ruclips.net/user/iOSAcademy?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
Join the iOS Academy Community: iosacademy.io/waitlist
iOS Academy offers the #1 course for iOS Development for Beginners. Learn to create iPhone and iPad apps from scratch. Everyone these days has an app idea; learn the important skill of making those apps, make yourself more marketable, change industries to get a different job, and enjoy the ride!
This video is brought to you by Skillshare - an only community of teachers sharing awesome skills. Use the following link to get 2 months of FREE premium: www.skillshare.com/r/user/afraz
0:00 Intro
0:20 Create Project
1:35 Add TableView
2:20 Connect Outlet
2:22 Prototype Cell
3:20 Delegate & Datasource
7:14 Finishing Table
7:45 Dynamic Content
9:35 Wrapping Up
Enjoy my teaching style? Learn to build the TikTok App from scratch with my course!
ios-academy.teachable.com/p/building-tiktok-for-ios
Finally, someone who really can explain clearly and in short time. No any bs or blah blah during videos! Thanks for sharing your knowledge!
You're welcome!
dude you are awesome, that was a great and clear explanation, simply put. Thank you!
This is excellent content. the lesson pacing and explanation are the perfect blend of informative and concise. Thank you for making these.
Feedback like this really motivates me, thanks for watching!
As soon as I got questions while watching this, you answered them the next second 😅 Succinct and clear explanation, keep up the good work!
Haha glad I could help! Make sure to subscribe for more :)
Thank you for up to date tutorials and for teaching a variety of ways to use the table view
Your very welcome!
Thank you. This was helpful. Watched another tutorial that didn't work at all. Glad I found this one.
Your welcome. Glad you liked it.
Thank You !
Thank you for this very helpful Video.
Very cool! Helped me got a concept I was struggling to grasp!
Glad I could help! Don't forget to subscribe for more videos :)
Amazing video, made me understand table view very nicely.
Great video, thank you very much!
bro you are literally the best. Keep up the good work!!
Thanks!
Bro, You're awesome.You Have earned a subscriber and made my basics more strong.
Glad I could help!
I love your videos! One thing I can't really get use to is zoom in and out effect while watching. The video quality is decent, I believe you can see the code and icons clear enough.
Thanks & thanks for the feedback
Do you have video for getting user input in table View?
Like the table views in Contacts of iPhone.
Thanks for this.
Thank you for useful video. As usual.
So nice of you
Thank you! You saved my life!!
You're very welcome!
Best TableView tutorial!
Thanks
Awesome , Thanks
You’re welcome
Great video! I'm new to Swift (and coding in general) so I have a follow up question: I am looking to use a TableView to organize my data in layers. Specifically, by year, month. For example, I would like to have a table that specifies year where the user is able to select the applicable year and it takes you to a TableView where you can select the applicable month. You are then able to select a month and it will take you to a place where the user will input data in a template. Is this possible with TableView? If so, how do I make the program return the new TableView with all applicable selections?
Thanks in advance for your help!
your work is amazing, thank you 🇧🇷
You’re welcome
you explained very well, it helps a lot to the beginners
Thanks!
Great tutorial, really well explained, thanks! But the zoom feature of your screen recording software makes it very hard to follow. Why don't you just lower your screen resolution if you want to make sure that it's not too small ;-)
Thank you for sharing this. Just to clarify indexPath.row actually returns an integer, so names[indexPath.row] is just the same thing as returning names[1]?
I like how you explained things.
Thanks
Great video thank you but i have a huge Problem in all of my table views and i noticed in yours, the problem exists too. The grey line between the cells isn´t in the middle, which means, the whole cell isn´t positioned in the vertical center. I tried so many things with contsraints, nothing helped. Do you have a solution for this problem?
Hi, when user logs in I want to display his details in tableview, firstly users logs in, currently logged in user adds medicine details that stores in firebase database from there it should fetch
wonderful and Thank you very much, I want to learn your another class
Youre welcome. Make sure to subscribe
hey, when I create a Project with Swift and Storyboard ill git a Cocoa Class instead of UIKit. does anyone know how to get it right ? :(
thank you so much such you are great sir, May God bless you
Youre welcome
Perfect
Thanks
what if we would like to add text and a button to the row
is there a way to make each cell a segue to another view controller with just story board? I'm making a Pokédex like app and don't know any coding but I've gotten pretty far
Youll be able to present a new view, but need code to pass in data
When select cell it will be go to related view controller. How to do that..
I am making an app that is a list of all the Wheel based iPods. When I tap on them, I want them to show information about the iPod. How do I do that?
A great tutorial, simple and well explained. but i would like to suggest pleas also share the code as well on github or else where. it will really help us.
thankyou for sharing knowledge.
Thanks
What’s a good recommendation if I wanna display all users or active users would table view work good for it ?
Yes! Tableview or collection view.
like you bro, very useful for me
Thanks
Zooming was not necessary for me. Thank you for the tutorial
Thanks for the feedback
please create some videos on macOS app development also.
Hi, I like your video and it is very helpful. Now I want to build an App with table view that first row display text, second row display image and third row display video. I can build an app that only displays video from table view, but i dont know how make the app to display all the three types. Could you create a video about that? Thank you for your time!
Thanks and sure
Good Explanation , show the table view data from API consumption
Thanks
which keys you are using for the search bar to pop up??
shift+command+o
can you please provide the full code !!
Interesting to see another way to create a table view, it's essentially the same as the on I know. Apart from the fact that my view controller inherited from UITableViewController, so I don't need to create and iboutlet, nor specify its delegate and data sources. Cool explanation nonetheless
Yep! Theres definitely several ways to accomplish the same thing :) Thanks for watching
I've got a question, why didn't you just add the protocols after UIViewController with a comma?
Do you have a video table view programmatically?
Thanks
Yes, just search it
@@iOSAcademy thanks so much 😄
Hello IOS Academy , I from Vietnamese
Hello!
Need a suggestion please:
I need a mac system just for Xcode ONLY. No entertainment or other use. I already have a top of the line line windows laptop for that.
Apple does not relase new OS updates for mac mini 2011 model. The last possible update for this model is 10.13, latest update is 10.15. Now the latest Xcode works only on 10.12 and above.
Shall I buy this mac? I need it for 2 years in exact. Do you think next Xcode updates will stop working on 10.13?
Id recommend buying a newer mac
Well explained, straight to the point and thorough. My only criticism is the volume of your mic is rather low. Still 10/10 demonstration. Thanks!
Thank you! Thanks for the feedback too
I built the table view, but want to add a checkmark, making it a checklist. is this something I can add into my project? Tutorial possible?Thank You. Best tutorials I've seen.
Yes you can.
Once you've created a cell, click on it. Then go to the Attributes Inspector. From the top of the Attributes Inspector go down to "Accessory" (it's the fourth from the top). Click checkmark.
That's the basics of it. Of course you'll need to implement code to make it do whatever else you want it to.
You need to update the accessory type
@@iOSAcademy I have no experience in this. I built the table view according to your video. I cannot see anywhere that I can update the accessory type. I'm sorry, I'm just lost.
Wait a sec! How did you do that spotlight search in Xcode itself?
Command shift O
extension "Declaration is only valid at file scope"
I think you may have just misplaced a bracket. I fixed that error but now upon building it says “Fatal effort: Unexpectedly found nil while implicitly unwrapping an optional value” You getting the same problem?
My code is not running plz help. It shows Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tableview.'
This error occurs when you try to set a value on an object that doesn’t support setting values. What I assume probably happened is you tried calling SAT value on the controller, instead of user defaults
Sorry for asking but what is the difference between a row and a cell? A cell is a thing that can be contained in a row, right? (I'm totally new to mobile development)
The cell is that which is placed in however many rows you choose to have it placed in. I hope that makes sense.
So if you have a table view with five rows, and you have a cell that you're using in that table view, each of the five rows will have that cell in it.
Of course, the point of each cell is to hold different information. So if your app was a list of contacts (with five rows, to keep with the above example) each of your five cells would be accessing one of five different names, and displaying them-- one name in each of your five rows.
Again I hope that makes sense.
Great question, looks like someone beat me to the answer :) But yes, cell is the object itself; row is just the horizontal place said cell is placed. They are basically one in the same
Your tutorials are good, but damn dude,
you could do to linger a little on written code before covering it up with your navigation
or zoom in a little less so you dont cut off code
Why lie? Video is 3yrs old, and clearly uses Xcode 11. Likewise videos marked as 2024 yet are 1-3 years old. Your content is great
why did not you create iphone settings in tableview?
Ill be doing this soon
iOS Academy bro, now i am doing this but i am in a very difficult situation please speed up the lesson. How Can I contact you. I have many questions about Tableview
i love it but not same as the thumbnail, because i need a tableview with custome image also text
Thanks! I think I may do more table view videos to show further customization
iOS Academy pleases do more videos on table views and more about sections please
Dude use weak var for outlets otherwise you create hard link bad for memory
yep, wanted to keep that confusion out for simple beginners
Please turn off the auto-zoom.
New videos dont have it
Thanks for breaking down tableview. But how do you know so much??... aren't you an expert in multiple languages?
No prob! Been doing this fur more than ten years now
this whole zooming out thing is quite irritating. I'm trying to get one line of code, but then one second later you zoom into the next part, meaning I can't see the full line, and I have to move back the time just before when you starting randomly zooming in. I find it really irritating to get through when there's a bunch of moving around going on, and if I miss something by just one second, you've already moved on to the next because you randomly zoomed into the next part.
New videos have no zoom
@@iOSAcademy Thank you!
Can you please stop zooming in and out so much. Thanks
Newer videos have no zoom
You go wayyyyy too fucking fast