11

I have one navigation controller with three views. I push the three view controllers onto the navigation controller's stack and want to pop all the pushed view controllers at once by the click on a button. I would like to be able to do that from any pushed view controller...

Please can you help me and give me pointers on how I could do that?

skofgar
  • 1,607
  • 2
  • 19
  • 26
user564963
  • 2,284
  • 5
  • 24
  • 33

1 Answers1

52
[self.navigationController popToRootViewControllerAnimated:YES];
Matthias Bauch
  • 89,811
  • 20
  • 225
  • 247