masaldana2
masaldana2

Reputation: 654

How to segue multiple view controllers programmatically using swift 3.0

I'm getting an error:

has no segue with identifier 'dest1''

and what I did was:

What am I missing?

Upvotes: 1

Views: 2638

Answers (1)

Michael
Michael

Reputation: 9044

From your description, you have set storyboard ids to "dest1" and "dest2", whereas you need to set segue identifiers. Click on the segue itself in IB, and set it's property.

Storyboard identifiers are used when creating the view controller using code...

instantiateViewControllerWithIdentifier("myViewController")

Upvotes: 2

Related Questions