ios - dismiss a modally presented view controller to a different underlying view controller -


i have uiviewcontroller that's embedded in navigation view controller. modally present view controller shows countdown. once countdown ends, modal view controller should dismissed , show different underlying view controller original presenting uiviewcontroller.

does know how in ios8 swift?

there different ways approach this. 1 way replace initial presenting view controller desired underlying 1 when present modal view controller.

nsarray * viewcontrollers = [self.navigationcontroller viewcontrollers]; [viewcontrollers replaceobjectatindex:viewcontrollers.count - 1 withobject:replacementcontroller]; 

dismissing modal show different underlying view controller swapped.


Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -