Get indexPath.row of a cell
<p>How to get the indexPath.row of a particular cell when a button in the cell is tapped here is my code </p>

<pre><code>if let indexPath = self.tableView?.indexPathForSelectedRow {
    print("\(indexPath.row)")

}
</code></pre>