How to add multiple images to to custom table view cell in swift ios?
<p>I have an imageView in my custom table view cell. I have multiple images copied to Xcode.<br>
Now I need to display these images in the tableview cell. I have decalared a <code>leaderImage</code> variable in which I have given the image names. </p>

<p>How can I achieve this?   </p>

<hr>

<p>This is what I have:</p>

<pre><code>var leaderImage : [String]!

override func viewDidLoad() {

  self.leadername = ["Oomen Chandy","PC.George","Veena George","M.Mukesh"]
  self.areaName = ["Puthupally","Poonjar","Thrissur","Kollam"]
  self.approvalrate = ["98%","94%","88%","95%"]
    self.leaderImage = ["rahul","Anil","Manu",]

    leadTableSetup()
    super.viewDidLoad()

    // Do any additional setup after loading the view.
}

func leadTableSetup(){

    LeadTableView.delegate = self
    LeadTableView.dataSource = self

    self.LeadTableView.register(UINib(nibName: "LeaderBoardTableViewCell", bundle: nil), forCellReuseIdentifier: "leadCell")

}

func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {

    return leadername.count
}

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {

    let cell = tableView.dequeueReusableCell(withIdentifier: "leadCell") as! LeaderBoardTableViewCell
    cell.leaderNameLbl.text = leadername[indexPath.row]
    cell.areaLbl.text = areaName[indexPath.row]
    cell.approvalLabel.text = approvalrate[indexPath.row]
    cell.imageView = leaderImage[indexPath.row]

    return cell
}
</code></pre>