Reputation: 522
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
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:
Hope this will help you.
Upvotes: 1