title: Automatically cell selected UITableView
body: <p>My UITableView opens via PopOverViewController , so How can I load one of these cells automatically after app did load , </p>
  
  <p>the cell selecting process on MainViewController </p>
  
  <pre><code>- (void)setDetailItem:(id)newDetailItem {
  
      if (detailItem != newDetailItem) {
          [detailItem release];
          detailItem = [newDetailItem retain];
  
          //---update the view---
          label.text = [detailItem description];
      }
  
  }
  </code></pre>
  
  <p>and cell selecting in TableViewController :</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
      myAppDelegate *appDelegate = 
      [[UIApplication sharedApplication] delegate];
      appDelegate.viewController.detailItem = [list objectAtIndex:indexPath.row];  
  
  }
  </code></pre>
  
  <p>I use this code in TableViewController but does not work ! It means after press the the popOver button the code just highlight the cell !! </p>
  
  <pre><code> [myTableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:NO scrollPosition:0];
  </code></pre>
  
  <p>I used above code in different methods like <code>viewDidAppear</code> , <code>viewWillAppear</code> and <code>didSelectRowAtIndexPath</code> and ... </p>
  
  <p>Thank you </p>