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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -