title: Is it possible to put and implement a segue and pass data for a custom button shown after sliding a UITableViewCell?
body: <p>I am new to iOS development and currently making a sleep tracker application. I want to know if it is possible to put or set up a segue and pass data in one of the buttons that is shown to user after swiping a <code>UITableViewCell</code> like in this screenshot </p>
  
  <p><a href="https://i.stack.imgur.com/LxAMg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LxAMg.png" alt="UITableViewSwipe"></a></p>
  
  <p>For reference, here is what I did to the buttons. It works for <code>UIAlertView</code> and changing of <code>ViewControllers</code>, but I don't know if I can apply segues here to pass data from one <code>ViewController</code> to another. </p>
  
  <pre><code>//tableview swipe action iOS8
  -(NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      UITableViewRowAction *delete = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Delete" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath)
          {
              UIAlertView *confirmDelete = [[UIAlertView alloc] initWithTitle:@"Delete Sleep Record" message:@"Do you want to delete this entry?\n\nWARNING: This action cannot be undone." delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Delete", nil];
              [confirmDelete show];
          }];
      delete.backgroundColor = [UIColor redColor];
  
      UITableViewRowAction *edit = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@" Edit " handler:^(UITableViewRowAction *action, NSIndexPath *indexPath)
          {
              UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
              ViewController *evc = [storyboard instantiateViewControllerWithIdentifier:@"edit"];
              [evc setModalPresentationStyle:UIModalPresentationFullScreen];
              [self presentViewController:evc animated:YES completion:nil];
          }];
      edit.backgroundColor = [UIColor colorWithRed:0.188 green:0.514 blue:0.984 alpha:1];
  
      return @[delete, edit]; //array with all the buttons you want. 1,2,3, etc...
  }
  </code></pre>
  
  <p>If it is possible, how can I do it programmatically or through the XIB?</p>