title: How to pass data to detail view after being selected in a table view?
body: <p>I have a UITableViewController that has data populated from an NSMutableArray called userList. When specific user is selected, it goes to a detail view, and updates the title in the NavBar, but it wont pass the data to update a UILabel in the UIView.  </p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
  [tableView deselectRowAtIndexPath:indexPath animated:NO];
  
  //Attempt at a singleton to pass the data
  DetailView *details = [[DetailView alloc] init];
  details.userNameLbl = [userList objectAtIndex:indexPath.row];
  
  
  DetailView *detailVC = [[DetailView alloc] initWithNibName:nil bundle:nil];
  
  //This line doesn't pass the data
  detailVC.userNameLbl.text = [userList objectAtIndex:indexPath.row];
  
  //This line does update the title in the NavBar
  detailVC.navigationItem.title = [userList objectAtIndex:indexPath.row];
  
  [self.navigationController pushViewController:detailVC animated:YES];
  
  [details release];
  [detailVC release];
  
  }
  </code></pre>
  
  <p>Should I be trying to push the data from the table view to the detail view, or have the detail view try to pull the data from the table view?</p>
  
  <p>DetailView.h has the following line that is in fact hooked up in IB.</p>
  
  <pre><code>IBOutlet UILabel *userNameLbl
  </code></pre>