title: How to change previously pressed UIButton label in UITableViewCell?
body: <p>I have <code>UITableView</code> with labels and a button to display list of audios.</p>
  
  <p>Once the button labeled "Play" is pressed it changes to "Stop" and audio is played, and if another button is pressed in other cell the previous cell button SHOULD changes its label to "Play".</p>
  
  <p>Now, <strong>the problem I have here is how to change the previous cell button back to "play" ?</strong></p>
  
  <p>The labels are outlets in <code>UITableViewCell</code> and the <code>UIButton</code> is programatically added in <code>cellForRowAtIndexPath</code></p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let cell = tableView.dequeueReusableCellWithIdentifier("SongTitleCell", forIndexPath: indexPath) as SongsTableViewCell
  
      let songDic : NSDictionary = arrSongs.objectAtIndex(indexPath.row) as NSDictionary
  
      cell.lblSongTitle.text = songDic.objectForKey("SongTitle") as? String
  
  
      btnPlayPause = UIButton(frame : CGRectMake(13,2,40,40))
      btnPlayPause.tag = indexPath.row
      btnPlayPause.setTitle("Play", forState: UIControlState.Normal)
      btnPlayPause.addTarget(self, action: "cellSongClicked:", forControlEvents: UIControlEvents.TouchUpInside)
  
      cell.contentView.addSubview(btnPlayPause)
  
      return cell
  }
  </code></pre>
  
  <p>The Action of the button here:</p>
  
  <pre><code>func cellSongClicked (sender : AnyObject ){
      var remote = GetSongData()
      remote.delegate = self
  
      var btnCurrentPressed = sender as UIButton
  
      //Play Selected Song
      let songDic : NSDictionary = arrSongs.objectAtIndex(btnCurrentPressed.tag) as NSDictionary
  
      if (btnCurrentPressed.currentTitle == "Play") {
  
        remote.PlaySelectedSong(songDic.objectForKey("SongURL") as String!)
        btnCurrentPressed.setTitle("Stop", forState: UIControlState.Normal)
  
      } else {
        playerContoller.stop()
        btnCurrentPressed.setTitle("Play", forState: UIControlState.Normal)
      }
  
  }
  </code></pre>
  
  <p>Thanks</p>