title: Simple View Controller Switch in iOS
body: <p>This really should work. This is one of the simplest things to achieve in iOS and for some reason it's just not working.</p>
  
  <p>I have two view controllers in my storyboard. One is InitViewController and the other is ViewController, with a storyboard ID of Init and ViewOne respectively. I have a button on InitViewController that is running code to switch the views. The code is running properly but nothing happens despite that fact. Here is the code:</p>
  
  <pre><code>-(IBAction)NextPage:(id)sender{
    ViewController *wc = [[ViewController alloc]
                                  initWithNibName:@"ViewOne"
                                  bundle:nil];
  
   [self.navigationController pushViewController:wc animated:YES];
  
  }
  </code></pre>
  
  <p>I imported ViewController.h, I just don't know why this isn't working.</p>