title: How to Navigate view Controller form Navigation Controller Programmatically
body: <p>Hi I'm trying navigate to view controller form the navigation view controller with connect using the objects</p>
  
  <p>i want to do by programmatically but its not working its showing the black screen. Please tell me how to resolve this.</p>
  
  <pre><code>- (IBAction)reg:(id)sender {
      pollpoliticalViewController *vc2 = [[pollpoliticalViewController alloc] init];
      [self.navigationController pushViewController:vc2 animated:YES];
  }
  </code></pre>
  
  <p>The above code i have used to navigate but its giving black color screen its not showing the view controller please tell me where I'm doing wrong.</p>
  
  <p>Thanks.</p>