I want to make a segue that makes navigation controller poptoroot and then make a new controller pushed into the navigation controller . e.g Now the controller hierarchy is
navigationController->rootcontroller->controllerA ->controllerB
and i want to make a segue perfome in controller B,and the segue will make the hierarchy to
navigationController->rootcontroller-> controllerC
is this possible?
You want to set segue doing pop to root. This can be achieved using Unwind Segues
. For more detail regarding this you can follow this Apple
doc.
For pushing to new VC, You can simply push in storyboard.