title: How do I pass indexPath (not indexPath.row) into my IBAction for my UITableViewCell
body: <p>I am developing a to-do application. In my app, I press a checkbox button to delete a row. I write this code in order to pass the indexPath.row into my checkbox button:</p>
  
  <pre><code>cell.checkbox.tag = indexPath.row
  cell.checkbox.addTarget(self, action: "checkAction:", forControlEvents: .TouchUpInside)
  </code></pre>
  
  <p>The first code allows me access to indexPath.row and the second one allow me to create a function for when my button is pressed. This is the function I use for when the button is pressed:</p>
  
  <pre><code>@IBAction func checkAction(sender: UIButton) {
      taskMgr.removeTask(sender.tag)
      tblTasks.reloadData()
  }
  </code></pre>
  
  <p>Now, I want to add animation for when it deletes, so it doesn't look so sudden. The code I would use is this:</p>
  
  <pre><code>tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.Automatic)
  </code></pre>
  
  <p>However, I only have access to indexPath.row in my checkAction function. How do I get access to the indexPath (without sacrificing indexPath.row)?</p>