pjtnt11
pjtnt11

Reputation: 522

How do you put UI elements inside table view

I'm trying to make an app where UI elements (Buttons, switches, segmented controllers, steppers, etc.) are inside of a table view. I am also programming in swift. How do you do this?

Upvotes: 0

Views: 70

Answers (1)

Kirti Nikam
Kirti Nikam

Reputation: 2206

You have to create Custom UITableViewCell using Nib (.xib) file. Then add UI controls and create connections within it as same as we are adding and connecting controls into UIViewController. You can also do it programmatically but this method is time consuming and also to add Autolayout through xib will be easier.

There are some tutorial available:

Tutorial 1

Tutorial 2

Tutorial 3

Hope this will help you.

Upvotes: 1

Related Questions