-2

hi guys inside my tableView i have an enum which represents sections and section title in the table view. also i have 3 different nib files (which represents 3 different cells). how can i show each-one at a specific section ? for example nib1 under action section, and nib2 under drama section and so on ?

 enum TabelSection: Int {case action case drama case comedy}

1 Answers1

0

For that, you need to create UITableview cells using Xib's and those xibs need to be registered with the tableview first. and then you can attach to cells to the specific section or row.

Medium tableview tutorial

Custom UITableViewCell from nib in Swift

msusare
  • 411
  • 2
  • 6