Defining a "generic" segue in Interface Builder Defining a "generic" segue in Interface Builder xcode xcode

Defining a "generic" segue in Interface Builder


You can ctrl-drag from the source view controller to the other scene. You can use the view controller object at the bottom of the scene to do this.

Then of course give it the appropriate identifier and then your code above should work fine.

Hope that helps.