title: How to transition from UITableViewCell to another view controller
body: <p>I am trying to go from a UITableView with prototype cells to a <code>detailviewcontroller</code> of the item I selected on.</p>
  
  <pre><code>-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  {
      if([segue.identifier isEqualToString:@"historyToDetail"])
      {
          BYFHistoryDetailViewController *controller = (BYFHistoryDetailViewController    *)segue.destinationViewController;
          controller.workOut = [[BYFWorkOut alloc] init];
          controller.workOut=_selectRow;
      }
  }
  
  
  -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      BYFHistoryTableViewController *detailViewController =[[BYFHistoryTableViewController alloc] init];
  
      NSArray *items = [[BYFworkOutStore sharedStore] allItems];
      BYFWorkOut *selectedItem = items[indexPath.row];
      _selectRow = selectedItem;
  }
  </code></pre>
  
  <p>What is not happening is the transition from the table to detail I have a push segue from the prototype cell to the details.</p>
  
  <p>What am I missing?</p>