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

Комментарии • 118

  • @iOSAcademy
    @iOSAcademy  3 года назад +3

    Enjoy my teaching style? Learn to build the TikTok App from scratch with my course!
    ios-academy.teachable.com/p/building-tiktok-for-ios

  • @jimmycho16
    @jimmycho16 4 года назад +37

    Finally, someone who really can explain clearly and in short time. No any bs or blah blah during videos! Thanks for sharing your knowledge!

  • @hamzaalaudi1184
    @hamzaalaudi1184 3 года назад +2

    dude you are awesome, that was a great and clear explanation, simply put. Thank you!

  • @IliadScott
    @IliadScott 4 года назад +4

    This is excellent content. the lesson pacing and explanation are the perfect blend of informative and concise. Thank you for making these.

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Feedback like this really motivates me, thanks for watching!

  • @mushii_shi
    @mushii_shi 4 года назад +5

    As soon as I got questions while watching this, you answered them the next second 😅 Succinct and clear explanation, keep up the good work!

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Haha glad I could help! Make sure to subscribe for more :)

  • @theevanator9252
    @theevanator9252 4 года назад

    Thank you for up to date tutorials and for teaching a variety of ways to use the table view

  • @mlitch5975
    @mlitch5975 4 года назад +1

    Thank you. This was helpful. Watched another tutorial that didn't work at all. Glad I found this one.

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Your welcome. Glad you liked it.

  • @viniciushenriquepellegrini3534
    @viniciushenriquepellegrini3534 8 месяцев назад

    Thank You !

  • @benedictsth
    @benedictsth 4 года назад

    Thank you for this very helpful Video.

  • @ytlagu2010
    @ytlagu2010 4 года назад +1

    Very cool! Helped me got a concept I was struggling to grasp!

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Glad I could help! Don't forget to subscribe for more videos :)

  • @TechnoForbes
    @TechnoForbes 2 года назад

    Amazing video, made me understand table view very nicely.

  • @user-og6wm3fu6o
    @user-og6wm3fu6o 2 года назад

    Great video, thank you very much!

  • @anthonykim2372
    @anthonykim2372 3 года назад +1

    bro you are literally the best. Keep up the good work!!

  • @nishanth4054
    @nishanth4054 4 года назад

    Bro, You're awesome.You Have earned a subscriber and made my basics more strong.

  • @paulmykhailov
    @paulmykhailov 3 года назад +2

    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.

    • @iOSAcademy
      @iOSAcademy  3 года назад

      Thanks & thanks for the feedback

  • @youbillonestv
    @youbillonestv 2 года назад

    Do you have video for getting user input in table View?
    Like the table views in Contacts of iPhone.
    Thanks for this.

  • @MarkizBoneco
    @MarkizBoneco Год назад

    Thank you for useful video. As usual.

  • @missseb3819
    @missseb3819 4 года назад

    Thank you! You saved my life!!

  • @user-yf8ns8ox5k
    @user-yf8ns8ox5k 2 года назад +1

    Best TableView tutorial!

  • @rishitprajapati6753
    @rishitprajapati6753 2 года назад

    Awesome , Thanks

  • @CJB8112
    @CJB8112 3 года назад

    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!

  • @hugopinheiro4624
    @hugopinheiro4624 3 года назад +1

    your work is amazing, thank you 🇧🇷

  • @BusinessDevelopmentSolution
    @BusinessDevelopmentSolution 3 года назад +3

    you explained very well, it helps a lot to the beginners

  • @greg_richrd
    @greg_richrd 3 года назад +4

    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 ;-)

  • @rookie9114
    @rookie9114 3 года назад

    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]?

  • @Anonymous-vh6kp
    @Anonymous-vh6kp Год назад

    I like how you explained things.

  • @fabianthanner8136
    @fabianthanner8136 3 года назад

    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?

  • @shruthirao6020
    @shruthirao6020 Год назад

    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

  • @yongtaekpark7808
    @yongtaekpark7808 3 года назад +1

    wonderful and Thank you very much, I want to learn your another class

    • @iOSAcademy
      @iOSAcademy  3 года назад

      Youre welcome. Make sure to subscribe

  • @mineserv-bk2tm
    @mineserv-bk2tm Год назад

    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 ? :(

  • @hariswaqar9284
    @hariswaqar9284 3 года назад +1

    thank you so much such you are great sir, May God bless you

  • @mikheilpukhashvili5653
    @mikheilpukhashvili5653 3 года назад +1

    Perfect

  • @elmcapp6032
    @elmcapp6032 Год назад

    what if we would like to add text and a button to the row

  • @aaronthompson2535
    @aaronthompson2535 4 года назад +1

    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

    • @iOSAcademy
      @iOSAcademy  4 года назад +1

      Youll be able to present a new view, but need code to pass in data

  • @BalaaLyf
    @BalaaLyf 3 года назад

    When select cell it will be go to related view controller. How to do that..

  • @imacg5658
    @imacg5658 3 года назад

    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?

  • @ahmedmujahad9999
    @ahmedmujahad9999 3 года назад +1

    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.

  • @latinacoder3699
    @latinacoder3699 4 года назад +1

    What’s a good recommendation if I wanna display all users or active users would table view work good for it ?

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Yes! Tableview or collection view.

  • @fernandoli6743
    @fernandoli6743 3 года назад +2

    like you bro, very useful for me

  • @campusgateapp7707
    @campusgateapp7707 3 года назад +3

    Zooming was not necessary for me. Thank you for the tutorial

  • @snehadugani6219
    @snehadugani6219 2 года назад

    please create some videos on macOS app development also.

  • @zhenyuwang4387
    @zhenyuwang4387 3 года назад

    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!

  • @harilakkakula9443
    @harilakkakula9443 2 года назад +1

    Good Explanation , show the table view data from API consumption

  • @user-wp7ym5ls6s
    @user-wp7ym5ls6s Год назад

    which keys you are using for the search bar to pop up??

  • @shrutichouhan8795
    @shrutichouhan8795 2 года назад

    can you please provide the full code !!

  • @thevitruvianman9781
    @thevitruvianman9781 4 года назад +1

    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

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Yep! Theres definitely several ways to accomplish the same thing :) Thanks for watching

    • @thevitruvianman9781
      @thevitruvianman9781 4 года назад

      I've got a question, why didn't you just add the protocols after UIViewController with a comma?

  • @PiiiPheCarrasco
    @PiiiPheCarrasco 3 года назад +1

    Do you have a video table view programmatically?
    Thanks

  • @atnghia
    @atnghia Год назад +1

    Hello IOS Academy , I from Vietnamese

  • @SwagatVlogs
    @SwagatVlogs 4 года назад

    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?

    • @iOSAcademy
      @iOSAcademy  4 года назад +1

      Id recommend buying a newer mac

  • @Spacely72
    @Spacely72 4 года назад +1

    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!

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Thank you! Thanks for the feedback too

  • @heathergraves5467
    @heathergraves5467 4 года назад

    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.

    • @unicornonthecob4302
      @unicornonthecob4302 4 года назад

      Yes you can.

    • @unicornonthecob4302
      @unicornonthecob4302 4 года назад

      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.

    • @iOSAcademy
      @iOSAcademy  4 года назад

      You need to update the accessory type

    • @heathergraves5467
      @heathergraves5467 4 года назад

      @@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.

  • @dream_emulator
    @dream_emulator 2 года назад +1

    Wait a sec! How did you do that spotlight search in Xcode itself?

  • @coonnaarr1984
    @coonnaarr1984 2 года назад +1

    extension "Declaration is only valid at file scope"

    • @nickcalderaro9166
      @nickcalderaro9166 2 года назад

      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?

  • @ankitratna2177
    @ankitratna2177 4 года назад

    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.'

    • @iOSAcademy
      @iOSAcademy  4 года назад

      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

  • @Stephane_
    @Stephane_ 4 года назад

    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)

    • @unicornonthecob4302
      @unicornonthecob4302 4 года назад +1

      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.

    • @iOSAcademy
      @iOSAcademy  4 года назад +1

      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

  • @williamhulsey5451
    @williamhulsey5451 2 года назад

    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

  • @RobertMcGovernTarasis
    @RobertMcGovernTarasis 6 месяцев назад

    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

  • @ulugbeknematjonov566
    @ulugbeknematjonov566 3 года назад

    why did not you create iphone settings in tableview?

    • @iOSAcademy
      @iOSAcademy  3 года назад

      Ill be doing this soon

    • @ulugbeknematjonov566
      @ulugbeknematjonov566 3 года назад

      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

  • @BranGaming20
    @BranGaming20 4 года назад

    i love it but not same as the thumbnail, because i need a tableview with custome image also text

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Thanks! I think I may do more table view videos to show further customization

    • @OrangeSlurpiee
      @OrangeSlurpiee 4 года назад

      iOS Academy pleases do more videos on table views and more about sections please

  • @lukassbeataddicts
    @lukassbeataddicts 2 года назад

    Dude use weak var for outlets otherwise you create hard link bad for memory

    • @iOSAcademy
      @iOSAcademy  2 года назад +1

      yep, wanted to keep that confusion out for simple beginners

  • @compsci91
    @compsci91 3 года назад +2

    Please turn off the auto-zoom.

  • @maxspeed2k
    @maxspeed2k 2 года назад

    Thanks for breaking down tableview. But how do you know so much??... aren't you an expert in multiple languages?

    • @iOSAcademy
      @iOSAcademy  2 года назад

      No prob! Been doing this fur more than ten years now

  • @swaraagsistla8641
    @swaraagsistla8641 3 года назад +1

    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.

  • @davidwim
    @davidwim 3 года назад +1

    Can you please stop zooming in and out so much. Thanks

    • @iOSAcademy
      @iOSAcademy  3 года назад

      Newer videos have no zoom

  • @Robinlan
    @Robinlan 3 года назад

    You go wayyyyy too fucking fast