title: How do I show an appropriate image in dequeueReusable cell?
body: <p>I have an array which i show as dequeueReusableCell, I'd like to show an appropriate image next to the cell. My images are the same name like items in array located in Assets.</p>
  
  <p>How do I show an appropriate image in dequeueReusable cell?</p>
  
  <p>My code:</p>
  
  <pre><code>import UIKit
  
  
  class Nicosia: UIViewController, UITableViewDelegate, UITableViewDataSource {
  
  
      let nicosiaPlaces = ["Famagusta Gate", "Laiki Geitonia", "Ledra Street","Omeriye Hamam","Cyprus Museum","Venetian Walls","The House of Hatjigeorgakis Kornessios","Byzantine Art Museum","Archbishop's Palace","Liberty Monument","The Faneromeni Church","Nicosia International Conference Center"]
  
      var identities = ["Famagusta Gate", "Laiki Geitonia", "Ledra Street","Omeriye Hamam","Cyprus Museum","Venetian Walls","The House of Hatjigeorgakis Kornessios","Byzantine Art Museum","Archbishop's Palace","Liberty Monument","The Faneromeni Church","Nicosia International Conference Center"]
  
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return nicosiaPlaces.count
      }
  
  
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
          let cell = tableView.dequeueReusableCell(withIdentifier: "Cell")
          let city = nicosiaPlaces [indexPath.row]
          cell?.textLabel?.text = city
  
  
          //cell.imageCellNicosia?.image = UIImage(named: city)
  
  
          return cell!
      }
  
  
      func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  
          let vcName = identities[indexPath.row]
          let viewController = storyboard?.instantiateViewController(withIdentifier: vcName)
          self.navigationController?.pushViewController(viewController!, animated: true)
  
      }
  
  
      func numberOfSections(in tableView: UITableView) -&gt; Int {
          return 1
      }
  
  }
  </code></pre>