title: Performing a function when button is clicked inside a table view cell
body: <p>I have a button inside my tableview cell. How can I convert the following lines of code so that I will be performing the same functions when the button (instead of the row) is clicked? Thanks in advance.</p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath:    NSIndexPath){
  
      // Get Cell Label
      let indexPath = tableView.indexPathForSelectedRow!
      let currentCell = tableView.cellForRowAtIndexPath(indexPath) as! PostCell
  
      if currentCell.updateBtn.hidden == false {
          valuetoPass = currentCell.favorTitle.text
          valuetoPass_desc = currentCell.descriptionText.text
          postKey = currentCell.post.postKey
          performSegueWithIdentifier("seguetoVC", sender: self)
      }
  
      if currentCell.bidBtn.hidden == false {
            bidInt = currentCell.post.bids
            postKey = currentCell.post.postKey
            passUsername = currentCell.post.username
            performSegueWithIdentifier("seguetoBidVC", sender: self)
      }
  
  }
  </code></pre>