title: Passing value from selected row to view controller
body: <p>I tried pass value from selected row to view controller. Log return null value in new view controller.Where is my mistake ?</p>
  
  <pre><code> 2013-06-18 17:28:59.394 App[1790:c07] ID is Here: 35023
  
   2013-06-18 17:28:59.397 App[1790:c07] Value in Next view  (null)
  
  2013-06-18 17:28:59.398 App[1790:c07] Label is Here &lt;UILabel: 0x9139810; 
  frame = (14 140; 255 16); clipsToBounds = YES; opaque = NO; 
  autoresize = RM+BM; userInteractionEnabled = NO; layer = &lt;CALayer: 0x915ab10&gt;&gt;
  </code></pre>
  
  <p>TableViewController Code :</p>
  
  <pre><code>NSString *localStringValue;
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {    
      NSUInteger row = [indexPath row];
      NSString *value = [myArray objectAtIndex:row];
  
      DetailViewController *second=[[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil] ;
  
      second.PassID=value;
  
      [self presentModalViewController:second animated:YES];
  
      localStringValue = [tableView cellForRowAtIndexPath:indexPath].textLabel.text;
      NSLog(@"ID is Here: %@", value);
  }
  </code></pre>
  
  <p>Next View Controller Codes:</p>
  
  <p>.h</p>
  
  <pre><code>@interface DetailViewController : UIViewController
  {
      NSString *PassID;
  }
  @property (nonatomic, retain) NSString *PassID;
  @property (unsafe_unretained, nonatomic) IBOutlet UILabel *label;
  </code></pre>
  
  <p>.m codes</p>
  
  <pre><code>- (void)viewDidLoad
  {
  
     label.text=PassID;
      NSLog(@"Label is Here %@",label);
  
      [super viewDidLoad];
  }
  </code></pre>