user328146
user328146

Reputation:

iOS storyboards segue push not working

I am having a minor problem with segue using push in Xcode's storyboards. Its pretty straightforward: even with the simplest case, I can't manage to get it working.

The setup: http://d.pr/i/ahCG

Which is basically just a 1-view project, added another view controller, embedded that into a navigation controller and made the segue and setting the mode to "push". There is absolutely nothing happening when I push the test button. If I make the segue with modal however, it works fine.

What am I doing wrong?

Upvotes: 1

Views: 4538

Answers (2)

AC1D
AC1D

Reputation: 380

You need to set the mode to "modal" instead of "push".

Upvotes: -1

rickster
rickster

Reputation: 126107

You need to embed the source view (not the destination view) into a nav controller to do a push segue.

Upvotes: 7

Related Questions