title: Getting the data of a particular row with a button infront of it and passing that data to the clickButton function
body: <p>I am currently in the cellForRow method where I have a button infront of each row.</p>
  
  <pre><code>CellForRow:
  JSONDecoder *decoder=[[JSONDecoder alloc] initWithParseOptions:JKParseOptionNone];
  NSMutableArray *json=[decoder objectWithData:myData]; {This has a list of items in the dictionary format}
  
  NSDictionary *dict=[json objectAtIndex:indexPath.row]; 
  NSString *status=[dict valueForKey:@"status key in json"];
  
  "dict" can be represented as:
  {
     status key in json="approved";
     name="abc";
     type="resourceName";
  },
  {
     status key in json="rejected"; 
     name="xyz";
     type="bus";
  
  },
  {
     status key in json ="pending";
     name="pqr";
     type="resource";  
   }...and so on .
  </code></pre>
  
  <p>Printing status will give me the status of all the rows. 
  approved
  rejected
  pending</p>
  
  <p>But I only need the status of that particular row infront of which I am gonna click the button. This is because I need that status for each row separately to send it to the buttonPressed method when I click the button infront of that row. I don't want to do that in didSelectRow method. </p>
  
  <p>How can I get the indexPath.row of a particular row(on clicking that row) so that I could write the method on click of the button corresponding to that particular row?</p>