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 -

c# SetCompatibleTextRenderingDefault must be called before the first -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -