Poping multiple levels in UITableViewController

Posted by LavaSlider on Stack Overflow See other posts from Stack Overflow or by LavaSlider
Published on 2010-04-11T03:23:38Z Indexed on 2010/04/11 3:33 UTC
Read the original article Hit count: 240

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c