title: change label text for specific cell of uitableView using swift
body: <p>i have label 'Now Playing' and 'Image' that should be display on selected cell, then as i select other cell the prev selected should be clear now.</p>
  
  <p>Code i have written:</p>
  
  <pre><code>func didSelectedRow(indexPath: IndexPath) {
      guard let cell = tblMusicPro.cellForRow(at: indexPath) as? musicTableViewCell else {
          return
      }
      if indexPath == currentIndex {
          cell.lblTagsPro.text = "Now Playing"
          cell.imgPlaying.alpha = 1
      } else {
          cell.lblTagsPro.text = ""
          cell.imgPlaying.alpha = 0
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pPSZ6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pPSZ6.png" alt="&#39;Now Playing&#39; and &#39;Image&#39; should be display on selected cell, then as i select other cell the prev selected should be clear now."></a></p>