title: UITableView and custom UITableViewCell using .xib
body: <p>In my app I am using a custom tableViewCell using a xib file. I create the .xib file outlet the labels etc to my TableViewCell class</p>
  <p>In my ViewController the code I used to populate and show the cell on the table view is as follows:</p>
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let transaction = statementArray[indexPath.row]
      let cell = Bundle.main.loadNibNamed(&quot;StatementCell&quot;, owner: self, options: nil)?.first as! StatementCell
      
      
      
      cell.transAmount.text = String(transaction.transAmount)
      cell.transDesc.text = transaction.transDesc
      cell.transFees.text = String(transaction.transFees)
      
      return cell
  }
  </code></pre>
  <p>I am aware that the way tableViews work is that they reuse the cell that goes off the screen. Is the way i am loading the .xib and populating the cell correct? Or do I have to add something to my code?</p>