title: How to get the indexpath.row when an element is activated?
body: <p>I have a tableview with buttons and I want to use the indexpath.row when one of them is tapped.
  This is what I currently have, but it always is 0</p>
  
  <pre><code>var point = Int()
  func buttonPressed(sender: AnyObject) {
      let pointInTable: CGPoint =         sender.convertPoint(sender.bounds.origin, toView: self.tableView)
      let cellIndexPath = self.tableView.indexPathForRowAtPoint(pointInTable)
      println(cellIndexPath)
      point = cellIndexPath!.row
      println(point)
  }
  </code></pre>