title: How to handle tableView cell audio play and pause button using Swift?
body: <p>My scenario, I am <code>recording</code> <code>audio</code> and <code>save</code> into <code>Coredata</code> then <code>listing</code> into <code>tableView</code> with <code>customcell</code> play/pause single button. I cant able to do below things</p>
  
  <ol>
  <li>Detect end of <code>playback</code> and change <code>audio</code> <code>play</code> cell button image pause to play</li>
  <li>While first row <code>cell</code> audio playing time, If user click second row play button need to <code>stop</code> first row cell audio play and change image pause to play 
  then <code>second row</code> cell button play to pause</li>
  </ol>
  
  <p>How to do above two operations?</p>
  
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
          let cellIdentifier = "Cell"
          let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) as! CustomCell
  
          // Configure the cell...            
          cell.likeBtn.addTarget(self, action: #selector(TableViewController.liked), for: .touchUpInside)
  
          return cell
  }
  
  @objc func liked(sender: UIButton) {
          // Here I need to change button icon and handle row
  }
  </code></pre>