title: popTOViewController
body: <p>I have a button named 'HOME'. In that button action I have the following code:</p>
  
  <pre><code>[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
  </code></pre>
  
  <p>When I click this button my app crashes.</p>
  
  <p>Changing the index from 1 to 2, then it pops the view perfectly.</p>
  
  <pre><code>[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];
  </code></pre>
  
  <p>My view sequence is Page1 --> Page2 --> Page3 </p>
  
  <p>I want to go from Page3 to Page1 but the app crashes. From Page3 to Page2 it works fine.</p>