title: passing data between tableView and another view in objective c
body: <p>I want to pass selected row's text to another view's label. But this not work. Not pushing second view. How can I solve this problem?</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  SecondViewController  *detailViewController = [[SecondViewController alloc] initWithNibName:@"SecondView" bundle:nil];
  // ...
  // Pass the selected object to the new view controller.
  NSUInteger row2 = [indexPath row];
  NSLog(@"rowden %i",row2);
  denemelik=row2;
  NSLog(@"kontrol %i",denemelik);
  
  [self.navigationController pushViewController:detailViewController animated:YES];
  detailViewController.stringdir= [ws2.CustomerName objectAtIndex:[indexPath row]]; 
  NSLog(@"hoff %@", [ws2.CustomerName objectAtIndex:[indexPath row]]);
  NSLog(@"kontrol2 %@",ws2.CustomerName);
  
  [detailViewController release];
  
  }
  </code></pre>
  
  <p>in my secondViewController.m viewDidLoad I set the 'stringdir' to label's text:</p>
  
  <pre><code>enyakinfirma.text = stringdir;
  </code></pre>