title: remove view controller from navigation controller
body: <p>I have 5 view controllers in navigation controller, and I want to remove Pages three and four on page five.The problem with below code is, if i remove index 3 and index 4 and I am on page Five.I get no back button on top anymore.I should be getting back button to page 2 again.But no.  what is the solution? Thank You for all the help provided.Appreciated. This error really driving me crazy</p>
  
  <blockquote>
    <p>navigationController!.viewControllers.remove( at: 3 )
       navigationController!.viewControllers.remove( at: 4 )</p>
  </blockquote>