title: How to add Values in a UITableViewCell
body: <p>Hey there I'm new to Swift and in this Community so sorry for my stupid question. Im trying to create a little quiz app with an UILabel for the Question and a tableView for the Answers.</p>
  <p>I found a solution to show the Question in the UILabel but I don't have any idea how to put the Answers in the Cell from my UITabelView.</p>
  <pre><code> import UIKit
  
  class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
  
      struct Question {
          var id: Int
          var questionText: String
          var answers: [String]
          var correctAnswer: Int
      }
      var question1 = Question(id: 1, questionText: &quot;Foo?&quot;, answers:[&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;], correctAnswer: 2)
      var question2 = Question(id: 2, questionText: &quot;Bar?&quot;, answers:[&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;], correctAnswer: 2)
      var question3 = Question(id: 3, questionText: &quot;Baz?&quot;, answers:[&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;], correctAnswer: 2)
  
      
  
      @IBOutlet weak var answerView: UITableView!
      @IBOutlet weak var questionLabel: UILabel!
      
      var listITemArray:[String] = Array()
      
      
      
      override func viewDidLoad() {
          super.viewDidLoad()
  
  
          
          overrideUserInterfaceStyle = .light
          setupButtonn()
         
         // answers.append(&quot;Aleks&quot;)
         // answers.append(&quot;Stefan&quot;)
         // answers.append(&quot;Nico&quot;)
          
          answerView.register(UINib.init(nibName: &quot;CheckMarkCell&quot;, bundle: nil), forCellReuseIdentifier: &quot;CheckListIdentifier&quot;)
          answerView.dataSource = self
          answerView.delegate = self
          
          questionLabel.text = question5.questionText
          listITemArray.
          
          
          
      }
      
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return listITemArray.count
      }
      
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: &quot;CheckListIdentifier&quot;) as! CheckMarkCell
          cell.answerLabel.text = listITemArray[indexPath.row]
          cell.selectionStyle = .none
          cell.answerButton.addTarget(self, action: #selector(checkMarkButtonClicked(sender:)), for: .touchUpInside)
          return cell
      }
  </code></pre>