title: How to remove a specific view controller from uinavigationcontroller stack?
body: <p>I have  a uinavigationcontroller. After logged in i want to remove viewcontrollers like RegisterViewController,LoginViewController etc from UInavigationcontroller stack..  </p>
  
  <p>I mean i have to remove a particular view controller from stack ? How its possible. ?</p>
  
  <p>I checked this post </p>
  
  <p><a href="http://starterstep.wordpress.com/2009/03/05/changing-a-uinavigationcontroller%E2%80%99s-root-view-controller/" rel="noreferrer">http://starterstep.wordpress.com/2009/03/05/changing-a-uinavigationcontroller’s-root-view-controller/</a></p>
  
  <p>So we can take it into an array like </p>
  
  <pre><code>NSArray *allviewcontrollers= [(UINavigationController *)navigationController viewControllers];
  </code></pre>
  
  <p>But how to do further process..   This question is hunting me for long time..Please answer me ..Thanks in advance</p>