title: ios push controller view programmatically without storyboards or xib
body: <p>In ViewControllerA I have a table with three rows of data right now (three messages).  Clicking on a row, I'm trying to push to ViewControllerB with the text from one of the rows (the name).  Problem I'm having is I'm trying to do everything programmatically, not using storyboard ids or storyboard segues.  Is this possible?  Here's what I have.</p>
  
  <p>ViewControllerA m.</p>
  
  <pre><code>-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    Messages *cell = (Messages *)[tableView cellForRowAtIndexPath:indexPath];
    NSString *from = [NSString stringWithFormat:@"%@", cell.from.text];
    ViewControllerB *VCB = [[ViewControllerB alloc]init];
    VCB.from = from;
    [self.navigationController pushViewController:VCB animated:YES];
    //using this^ creates a new view controller with a black screen but passes the variable
    //[self performSegueWithIdentifier:@"pushMessage" sender:self];
    using this^ shows my ViewControllerB perfectly but the value isn't set
  }
  </code></pre>
  
  <p>ViewControllerB h.</p>
  
  <pre><code>@property (strong, nonatomic) NSString *from;
  </code></pre>
  
  <p>ViewControllerB m.</p>
  
  <pre><code>-(void)viewDidLoad{
      NSLog(@"%@", from);
  }
  </code></pre>
  
  <p>Is there a way to do this without initiating a new viewcontrollerB in VCA and getting the right push animation?</p>