4
votes

I have an app with a navigation view controller and once a cell is tapped on, a screen is pushed on top of it. However, when testing this app on a simulator and on multiple devices, the push segue somehow turns into a modal segue. These pictures will show a gist of what is happening:

Table View:

enter image description here

What is supposed to happen (Show segue):

enter image description here

What happens instead (Modal segue):

enter image description here

I am running this on an iOS simulator but for my app the result is the same. I have seen people post about this issue taking place on iOS 7, but is this supposed to happen with iOS 9?? Please help.

Thanks!

1
This looks like the "Master-Detail Application" template of Xcode, which uses UISplitViewController (not UINavigationController, like you mention...). Perhaps you are not allowed to post screenshots of your actual app, and used the template instead to convey the idea?Nicolas Miari
Does your segue still appear as "show" in Interface Builder? Did you try deleting the segue and recreating it?Nicolas Miari
@NicolasMiari that is what I am doing just to give an idea and I tried deleting and recreating multiple times. I even tried deleting the navigation controller in between but that did not change anythingvirenabhyankar
...and it was working until the last beta (before GM)?Nicolas Miari
@NicolasMiari I had submitted it to the App Store and it was working fine on every device I tested on and simulator. Then I update the app and find this error. That was on Xcode 6, on which it seems to be working fine but once updated it starts behaving like this. On Xcode 7, I can actually see the issue on the simulator (which I was unable to do before) but I have no indication of why this is happening.virenabhyankar

1 Answers

5
votes

I have found a solution. It appears, that now, in Xcode 7, you should make a segue not to navigation controller, but to your viewController directly, in order to achieve desired push segue.