title: How can I close my current view controller and push another view controller in iOS
body: <p>I want to close my current view controller and go to the next page?</p>
  
  <p>i.e close the current view controller and push another view controller on the stack.</p>
  
  <p>I am able to close current page using the below code</p>
  
  <pre><code>[[self navigationController] popViewControllerAnimated: YES];
  </code></pre>
  
  <p>But opening a new controller just after this is not working.</p>