title: iPhone table view - some button/action questions
body: <p>I created a table view that is populated with a custom UITableViewCell (<a href="http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html#//apple_ref/doc/uid/TP40007451-CH7-SW31" rel="nofollow noreferrer">like this</a>). Each of the cells contains two UIButtons. I assign the action to the button like this:</p>
  
  <pre><code> [decreaseButton addTarget:self action:@selector(decrease) forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>Is this the right way?
  Anyway, it works, but in my "decrease" method I need to know in which of my 18 table view rows the button was pressed. indexPath.row doesn't work outside the cellForRowAtIndexPath method, of course.
  Can someone explain me how to do this?</p>
  
  <p>Thanks a lot in advance!</p>
  
  <p>iYassin</p>