XCode Swift - Custom UITableView Cell Tutorial

Seemu Apps · 28K views · 2015 · 8:52

Open on YouTube

Software (other)Testing, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it in comments and answers when someone needs to build or reuse a custom table view cell in Swift.

Recommended by 4 people across 4 different months, 2015 to 2017.

What it is

A short screencast tutorial from Seemu Apps showing how to build a custom UITableViewCell in Swift using Xcode. The presenter walks through subclassing the cell, wiring up outlets and using the cell in a table view, with source code on GitHub.

What people said

Recommends milo526 · 2015-03 · Stack Overflow · on “Trying to build restful application in swift”

I want to add to this comment that you would want to make a custom cell for this. You should be able to combine the link supplied by 3vangelos with this tutorial [this video] and get the desired output

Recommends Morten Stulen · 2015-06 · Stack Overflow · on “Add view to a cell in a Table View Programmatically”

You need to create a custom UITableViewCell class with your graph view and a label. Tons of tutorials online :) [this video]

Recommends 9it3e1 · 2015-09 · Stack Overflow · on “[iOS][Swift] Creating layout for news application content programmatically”

You can achieve this using ui UITableView with custom view cells in swift. Refer to this link [LINK] and this one [LINK] or this lovely video [this video]

Recommends user5890979 · 2017-01 · Stack Overflow · on “Reusable UITableViewCell duplicating on scroll in Swift”

@TheAtlantaGoat The viewDidLoad method belongs to a ViewController, what you need to do is to create a UITableViewCell subclass, thats where the method gets called. I'm not coding in swift unfortunatly can't show you an example, but here is a good tutorial I found for you that shows you how to subclass a tableviewCell and use it correctly in a tableview. [this video] , basically the idea is you create the outlet/property ONCE and just change its content/text/image when you reuse the cells.