title: Setting Specific UITableView rows to push in a specific detail view?
body: <p>I currently have 7 rows in my UITableView and I'm using segues to push in a detail view. However, I currently have two different view controllers, and want something like this:</p>
  
  <p><em>If row 1 and 2 are selected push in: "showMenuDetail1"
  If row 3 through 4 are selected push in: showMenuDetail2"</em></p>
  
  <p>This is what I currently have: I'm not sure how to exactly assign rows to a specific one. </p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
      if ([segue.identifier isEqualToString:@"showMenuDetail1"]) {
          NSIndexPath *indexPath = [self.menuTableView indexPathForSelectedRow];
          HomeDetailViewController *HDViewController = segue.destinationViewController;
          HDViewController.theName = [[menu objectAtIndex:indexPath.row] name];
      }
  }
  </code></pre>
  
  <p>Any help would be appreciated! I know it's an if and else statement but I'm not sure how to write out the exact condition. Thanks!</p>