Poping multiple levels in UITableViewController
- by LavaSlider
I would like to be able to pop multiple views from a UITableViewController stack. For example in the Apple DrillDownSave example, when viewing Level 3 to go back to Level 1 or when viewing an Item to go back to Level 2 when a button is pushed.
I tried:
[self.navigationController.parentViewController.navigationController popViewControllerAnimated: NO];
[self.navigationController popViewControllerAnimated: NO];
and
[self.navigationController popViewControllerAnimated: NO];
[self.navigationController.parentViewController.navigationController popViewControllerAnimated: NO];
but these leave me the same place as just a single popViewControllerAnimated:. Is there an easy way to do this?