title: Getting the row of tableview
body: <p>How can I get the <code>indexPath.row</code> when a button is tapped? Here is the code I have now:</p>
  
  <pre><code>let alert = SCLAlertView()
  let txt = alert.addTextField("Quantity")
  txt.keyboardType = UIKeyboardType.NumberPad
  txt.text = "\(1)"
  
  alert.addButton("Add to cart") {
      var sar:Cart!
      let indexPath = self.tableView?.indexPathForSelectedRow
      print("\(indexPath.row)")
  }
  </code></pre>
  
  <p>But it didn't work.</p>