title: Create UITableView with multiple Custom Cells in Swift
body: <p>What is the best current way to create an <code>UITableView</code> with multiples Custom Cell with the storyboard and the tableView methods?</p>
  
  <p>For now, I get correctly my <code>JSON</code> response split into 3 arrays then I want to use it to update my tableView with 3 different custom cells.</p>
  
  <pre><code>class MainViewController: UIViewController {
  
      // MARK: - Properties
      var starters = [Starter]()
      var dishes = [Dish]()
      var deserts = [Desert]()
  
      // MARK: - Outlets
      @IBOutlet weak var foodTableView: UITableView!
  
      // MARK: - Functions
      func updatDisplay() {
          ApiHelper.getFoods { starters, dishes, deserts in
              self.starters = starters
              self.dishes = dishes
              self.deserts = deserts
              self.foodTableView.reloadData()
          }
      }
  
      // MARK: - View Lifecycle
      override func viewDidLoad() {
          super.viewDidLoad()
          updatDisplay()
      }
  }
  
  extension MainViewController: UITableViewDelegate, UITableViewDataSource {
  
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return 0
      }
  
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "StarterCell", for: indexPath)
  
          return cell
  
      }
  }
  </code></pre>