A.Roe A.Roe - 4 years ago 182
Swift Question

Segue from one view controller embedded within UINavigationController to another UINavigationController

I have a

as my root controller, but then I segue from one view controller to another

But when segueing from one view controller which is embedded within a UINavigationController to another UINavigationController the push segue comes from the bottom, presuming it is segueing as a popover. I tried using a show detail segue but still not luck.

Why is this occurring and how can I segue from one to the other using a push/replace segue ?

PS: Is this happening because the
conflict and overrides the segue as a
? The reason I am using two separate navigation controllers is because the style from the previous view overrides the style of the detail view, i posted a separate question about that Cannot change style of UINavigationBar when using scrollViewDidScroll on separate View Controller

Answer Source

Push segue occurs only within one navigation controller. It's how it implements 'show' type segue. Making 'show' segue from navigation controller to another navigation controller is not what Xcode drawing tool considered as 'pushing'. It interprets it as popover by default.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download