TableView With Custom Cells In Swift - Tutorial

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024
  • In this video we will learn how to set up a tableview with custom table view cells in Swift. This video is for beginners but a very critical part of iOS Development. Follow along to get the most out of this lesson!
    💻 Source Code: / iosacademy
    🎥 Subscribe for more: www.youtube.co...
    😎 Like my teaching style? Check out some of my most popular courses!: courses.iosaca...
    👉🏼 Connect (personal LinkedIn) / afrazsiddiqui
    🚀 Follow on LinkedIn / ios-academy
    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!

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

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

    Enjoy my teaching style? Check out some of my premium courses at courses.iosacademy.io/

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

      how can we scroll until last item in tableView (i.e even if there are thousand tiles I want to scroll until there is only last item showing in tableView)

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

    This is great tutorial, my 5%: try not to zoom too much. It distracts focus

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

      Hey Lagu, thanks for the feedback! Glad you liked the video

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

      I would just make the font size bigger that way you don't have to zoom in and out.

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

    I was struggling with this for hours watching other videos. This video fixed every issue I had. Thank you so much!!

  • @ArmandsMikanovskis
    @ArmandsMikanovskis 5 лет назад +24

    constant auto-zooming is very distracting..but tutorial itself was good 👌🏾

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

    Tks! I am working on my career transition to become an iOS Developer and your channel has helped me a lot. best wishes for you :D

  • @yogeshrokhade357
    @yogeshrokhade357 4 года назад +10

    Very good tutorial . Love the content.To the Point. But a request though is to not use the auto-zooming.
    Hurts eyes as it cannot re-adjust so fast as you move your mouse fairly quicky and also brain cannot focus , cause the content then seems to feel disconnected/broken.
    But , definitely the content is best. Very easy to understand. Thanks for the video

  • @brianwawczak1039
    @brianwawczak1039 5 лет назад +2

    This is beyond a doubt the best custom cell tutorial I've seen. Very clearly explained. Thank you.

    • @iOSAcademy
      @iOSAcademy  5 лет назад

      Glad you found it helpful, more content to come!

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

    thank you very much for the rffort your doing. appreciated.
    i would drop the zoom in and out part, doesnt give any bennefits, but confusing actualy...

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

      Thanks. New videos have no zoom

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

    I actually like the zooming. Great video to refresh my memory!

  • @erickramones2167
    @erickramones2167 4 года назад +11

    great tutorial but dont zoom to often I makes me dizzy. thanks for the video buddy.

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

      Great feedback - thanks!

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

    best iOS channel

  • @薰木神
    @薰木神 2 года назад

    Useful and easiest understand!!!! thanks so much

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

    Other than the zoom issue that others have brought up, what is the big rush?

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

    I really appreciate your work, this video helps me a lot! thanks for sharing your knowledge.

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

    Thanks , good content for beginners

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

    Many thanks for this great tutorial. 1 question : How to segue from those created cells ?

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

    Absolutely excellent! Great explanation of the building blocks for using a custom cell. Great for building upon! Thanks!

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

      Thanks! Glad you liked it

  • @Bricks.Master.Builders
    @Bricks.Master.Builders 5 лет назад +1

    Thank you for this tutorial, keep it up

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

    Thank you very much for great explanation!!!

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

    Great video!!
    Is there a tutorial where you teach how to dynamically add or remove itens from the custom cell? Like I have a button to upload a fila and then after it uploads I want to replace that button to a confirmation message or icon, did you teach something like that in any of your classes?

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

    Great tutorial!

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

    Crystal clear explaination!

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

    absolute great job. thank you

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

    This is a great tutorial. It really needs to be rerecorded without zoom as it makes it ridiculously hard to follow.

  •  10 месяцев назад

    do u have this video without zoom? pleaseee

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

    Having trouble connecting my Outlet to my TableView (4:21 mark). When I R-click to access that menu, it doesn't appear; any reason why it may not? I follow the video closely, but for some reason that is the problem that will not allow the app to load or function like yours in the video. Any advice would be greatly appreciated; thanks?!

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

    Auto zooming makes things complicated and for my taste waaaay to fast, but good explanation.

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

    You are one of the best instructors. I can reproduce your Demo’s with no problem. Thank you for your videos. Question: how would I rank the five entries based on a sum of a field in a cell. Is this even possible? And do you have training videos for full apps that I can signup for or purchase? Demos for complex to do apps or TV guide type apps. Any information would helpful. Thank you!

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

      Thanks so much! This is definitely possible - can you explain your desired outcome a bit more and I can provide the steps you'll need to take. As for the training videos - I am actually working on a few courses that I'll be releasing in the coming months. My first priority right now is to make these videos freely available and build this community on RUclips :)

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

    Thank you very much!

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

    Hello, your tutorial is so good, i want to ask, how to give spacing for each cells?

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

      Thank you! For spacing, you can either implement a custom cell with spacing your override the heightforfooter tableview function. Set it to 70 and run. Youll see a 70 point space between each cell

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

      @@iOSAcademy i got this sirr.. www.dropbox.com/sh/uvn19sovdcmqoqc/AACFSpZ0BXKe4icdhj7jCR-Oa?dl=0
      what should i do, maybe you have some resource to share?

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

    can you create a video for creating a tableView using RxDataSource ,
    and explain why rxDataSource , how it would benefit for creating a tableView using rxDataSource,
    and more details regarding that

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

    Thanks . you are the best!

  • @lukashman538
    @lukashman538 5 лет назад

    Thank you very much !!! That was fast and clear ! I use protocols to operate with custum cell, is use xib file better ? Or as always every instrument is good at different things ?

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

      Both xibs and protocols have their advantages and disadvantages - I would recommend using what ever you are comfortable with and that can get the job done :)

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

    is there any way to put condition in the elements of a cells? e.g if i click on yellow part (do a task) n if i tap on red part (do another task) but within the did select row function?

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

    Hey, great tutorial thanks... But I have no idea how to dynamically insert images into the UIImageViews. Do you have any other links that can assist? Thanks

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

    Do you provide the code to this tutorial on your website or maybe on github?

  • @crazyice-cream7794
    @crazyice-cream7794 4 года назад +1

    Thank you a lot

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

      You're welcome! Make sure to sub

  • @AM-bk2pe
    @AM-bk2pe 2 года назад

    great tutorial! In the future zooming in and out less would be more useful as it was a bit hard to follow, but otherwise really clear, thanks!

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

    hey, thanks for useful tutorial videos. I like Zooming-out. it's readable. keep on! Have you premium videos for more tutorials?

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

      Thsnks. Premium content coming soon

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

    Doesn't work when working with tab bar views and segues from another view controller. Is there something else you need to add? Also, loading shared data from model class instantiated in AppDelegate for populating cells.

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

      Hm, this has nothing to do with tab bar and segues

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

    best one!

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

    Hello IOS Subscriber
    I am getting an error please help me:
    tableView.register(nib, forCellReuseIdentifier: "10") Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value>

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

      You are getting this error because you have not registered a table view cell with that identifier

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

    Nice Tutorial, but try to put the app in the discribtion

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

      Thanks & thanks for the feedback. Make sure to sub

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

    How do I resize each cell ?

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

    The custom cells, don't take the background colour of the whole view, so what can I do to fix this?

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

      cell.backgroundColor = UIColor.systemPink
      ...if your cell is named cell and your ViewController's background is systemPink :)

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

    Why do we create a tableview cell with XIB? We can also create a custom cell by adding a prototype cell in tableview. Do you have example of scenario where creating a tableview cell with XIB is a must?

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

      Actually my content view objects were overlapping in the simulation. Using XIB to arrange layout separately solved that problem.

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

    A suggestion. Your videos are great, but you can avoid too much zoom and zoom out every time which is hurting our eyes. You can zoom when it is really required. Thanks

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

    zoom-in and out makes so much effort to watch.

  • @Jngrowdon
    @Jngrowdon 4 года назад +2

    Good tutorial. Stop all the zooming and slow down on your explanations. Leave the code on the screen a bit longer.

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

    Great video but Please do not use zooming. It is soooo annoying

  • @dewetvanrooyen8458
    @dewetvanrooyen8458 4 года назад +2

    HI mate great view ,howevert the zooming in and out is disorientating, I had had to stop watching. Sorry.

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

    Please stop zooming. It's distracting and makes it difficult to learn.

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

      New videos have no zoom

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

      @@iOSAcademy bro I need zoom. Bcz I'm using 240p video quality.

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

    please stop zooming in and out everywhere

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

    Turorial is good but too much auto zooming. Make me dizzy.

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

      Thanks for the feedback

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

      No zooming is fine i am using small phone. There would be many so great going

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

    Просто увеличь шрифт,а не приближай код.

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

    I stopped watching at 5 minutes. The frenetic zooming in and out and panning makes what would otherwise be valuable content unwatchable.

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

    ZOOOOOOM ZOOOOOMM ZOOOOOOM - spin cycle complete puke

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

      New videos have no zoom

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

    Thank you!