title: Programmatically Create Static TableView / Cells
body: <p>I have a UITableView, which as an example contains dynamic cells I create based on the content of an array.</p>
  
  <p>I can populate these using the count of the array and indexPath to render a cell per item. I am happy with this and it works well.</p>
  
  <p>I would like to try now and create static cells <strong>programmatically</strong>.</p>
  
  <p>Immediately however I am stumped, how do I create this? I'm currently overriding <code>numberOfRowsInSection</code> and <code>cellForRowAt indexPath</code> as follows:</p>
  
  <pre><code>override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return items.count
  }
  
  override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "cellID", for: indexPath) as! ProfileCell
      cell.rowContent.text = items[indexPath.row]
      return cell
  }
  </code></pre>
  
  <p>I suspect my first mistake is <code>dequeueReusableCell</code> and would really appreciate any help.</p>