Search code examples
swiftuistoryboardsegue

Issue with connecting a present viewController to nextViewController


I downloaded the starter project from HERE

But when I try to Ctrl+Drag from the TimelineViewController to the NavigationViewController to create a segue simply I can not do that like this:

enter image description here

I don't understand what is the problem here.


Solution

  • To create a segue, you need to control+click from the trigger of the segue (button, link, etc.) to the new view controller. A view controller cannot trigger a segue. In keeping with the tutorial, try control+drag from the menu button to the target VC. That will solve your problem, but I don't know how it will affect remainder of the tutorial.