I’m new to XCode/iOS and I’m trying to create a segue between two different screens (one with the letter A on it (a label) and the other with the letter B). I created two basic view controllers on the storyboard and then I added a button to one of them. I then control click and dragged from the button to the other view controller. I choose push. However, when I run it, it doesn’t segue. Why not? I’ve heard about Navigation Controllers, but I don’t want a naviagtion bar (with back for example) at the top of my screen, thus I didn’t use one.
Share
In order to utilize a push segue, your root view controller needs to be a navigation controller. The only segue you can use without a “master” controller of sorts like that, is a modal segue