title: Swift: How to get row number of a button in each table row?
body: <p>Ive got a table. each table has its own custom button. when its pressed the following funtion runs</p>
  
  <pre><code>@IBAction func select(sender: UIButton) {
  
        anobject.itsproperty[the row?] = true
   }
  </code></pre>
  
  <p>how do I access which row the button was pressed from? so i can use that to access an array. </p>