title: performSegueWithIdentifier on didSelectRowAtIndexPath
body: <p>With this code every time user click on any  cell  will perform the segue again and again , I am wondering how could I keep track of the loaded view to keep data when switching views and not an infinite new viewcontroler.</p>
  
  <p>Thanks -  </p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
    if (indexPath.row == 0) {
      [self.navigationController
       performSegueWithIdentifier:@"rep" sender:self];
    } else if (indexPath.row == 1) {
      [self.navigationController
       performSegueWithIdentifier:@"rep1" sender:self];
    }
  
  }
  </code></pre>