title: How to pass UITableView IndexPath to UIButton @selector by parameters in iOS?
body: <p>I have added <code>UIButton</code> in <code>UITableViewCells</code>. I have when the user clicks the button we have get the indexpath to use the values from <code>NSMutableArray</code>. I have used the below to get the current <code>IndexPath</code>,</p>
  
  <pre><code>[getMeButton addTarget:self action:@selector(resendTheErrorMessage:) forControlEvents:UIControlEventTouchUpInside];
  
  -(void) resendTheErrorMessage:(id)sender 
  {
     NSLog(@"SEnder: %@", sender);
     //NSLog(@"Index Path : %@", indexpath);
  }
  </code></pre>
  
  <p>Can anyone please help me to pass current indexpath <code>UIButton's</code> @selector. Thanks in advance. </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>This is the output I got from <code>NSLog()</code></p>
  
  <pre><code>&lt;UIButton: 0x864d420; frame = (225 31; 95 16); opaque = NO; tag = 105; layer = &lt;CALayer: 0x864d570&gt;&gt;
  </code></pre>