ios - Removing ViewController in Navigation Stack -


in navigation stack , having 6 view controllers a->b->c->d->e->f

at view controller f, want go view controller b, how can this? want remove view controllers 1 one. in advance!

use this:

for (uiviewcontroller *controller in self.navigationcontroller.viewcontrollers) {     if ([controller iskindofclass:[b class]])     {         [self.navigationcontroller poptoviewcontroller:controller animated:yes];         break;     } } 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -