title: Programmatically firing a segue from dynamic cells
body: <p>I have two grouped sections, each containing one cell view. I need one cell, when clicked, to go to one scene and the other cell to go to another. I have set up the segues from the main view controller to the two other scenes and now I need to instruct the program to fire the segue when the correct cell has been clicked.</p>
  
  <p>I think this has to happen in this area of my code where each section is customized.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
  {
      UITableViewCell *serverLocCell = [tableView dequeueReusableCellWithIdentifier:@"serverLocation"];
  
      switch (indexPath.section) {
          case 0:
              serverLocCell.textLabel.text = testLocation;
              serverLocCell.detailTextLabel.text = @"Change";
              break;
          case 1:
              serverLocCell.textLabel.text = @"Speed Test";
              serverLocCell.detailTextLabel.text = @"Change";
              break;
          default:
              break;
      }
  
      return serverLocCell;
  }
  </code></pre>
  
  <p>I think I also require this function:</p>
  
  <pre><code>self preformSegueWithIdentifier
  </code></pre>
  
  <p>However can't quite nail down the correct code/placement.</p>
  
  <p>Both segues have their own identifier.</p>