title: How to put 3 different image with order in tableview cell?
body: <p>I have a imageview in tableview cell and I have 3 different image.</p>
  
  <p><strong>What I'm trying to do :</strong> </p>
  
  <p>my cell should look like:</p>
  
  <pre><code>img1
  img2
  img3
  img1
  img2
  img3
  img1
  .
  .
  </code></pre>
  
  <p>.
  how can i do this order ? Sorry for my bad english :)</p>
  
  <p><strong>here is my cellforrowat</strong> </p>
  
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          if let jlist = self.joinAllAllowedInnoList, !jlist.isEmpty {
              let cell = tableView.dequeueReusableCell(withIdentifier: "JoinCell", for: indexPath) as! JoinCell
  
              //--
  
              cell.delegate = self
              cell.indexPath = indexPath
  
  
  
              //--
              if(indexPath.row % 2 == 0) {
                  cell.thubnailImageView.image = UIImage(named:"thumb1")
  
              }
              else {
                  cell.thubnailImageView.image = UIImage(named:"thumb2")
              }
  
              cell.participationEndDate.text = jlist[indexPath.row].joinEnd
              cell.titleLabel.text = jlist[indexPath.row].shortDesc
  
              return cell
          }
          else {
              let cell = UITableViewCell()
              cell.selectionStyle = .none
              cell.backgroundColor = .clear
              cell.textLabel?.textAlignment = .center
              cell.textLabel?.textColor = UIColor.black
              cell.textLabel?.text = "nodataavaiable".localized()
              return cell
          }
      }
  </code></pre>