title: Detecting selected cell using SWTableViewCell
body: <p>I have implemented the SWTableView class from <a href="https://github.com/CEWendel/SWTableViewCell" rel="nofollow">https://github.com/CEWendel/SWTableViewCell</a></p>
  
  <p>It is working fine, but I don't know how to retrieve the value of the cell objects when clicking on the exposed buttons.</p>
  
  <p>This is how am I getting the object values at cellForRowAtIndexPath method:</p>
  
  <pre><code>  NSString *date = [self stringValueOfDictionaryObject:(id)[[historialServicios objectAtIndex:indexPath.row] valueForKey:@"date"]];
  </code></pre>
  
  <p>I have added three buttons that are shown when the user swipes the cell.
  What I need is to add button actions that have to get values of the selected row object. Mainly, I need to retrieve the string date when clicking on the button "More"</p>
  
  <p>This is the didTriggerRightUtilityButtonWithIndex method.</p>
  
  <pre><code>- (void)swipeableTableViewCell:(SWTableViewCell *)cell didTriggerRightUtilityButtonWithIndex:(NSInteger)index {
      switch (index) {
          case 0:
          {
              // More button is pressed
              UIActionSheet *shareActionSheet = [[UIActionSheet alloc] initWithTitle:@"Share" delegate:nil cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Share on Facebook", @"Share on Twitter", nil];
              [shareActionSheet showInView:self.view];
  
              [cell hideUtilityButtonsAnimated:YES];
  
  
              break;
          }
          case 1:
          {
              // Other  button is pressed
              UIActionSheet *shareActionSheet = [[UIActionSheet alloc] initWithTitle:@"Share" delegate:nil cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Share on Facebook", @"Share on Twitter", nil];
              [shareActionSheet showInView:self.view];
  
              [cell hideUtilityButtonsAnimated:YES];
  
  
              break;
          }
          case 2:
          {
              // Delete button is pressed
              NSIndexPath *cellIndexPath = [self.tableView indexPathForCell:cell];
              [self.tableView deleteRowsAtIndexPaths:@[cellIndexPath] withRowAnimation:UITableViewRowAnimationLeft];
              break;
          }
          default:
              break;
      }
  }
  </code></pre>