Reputation: 45
I've connected my segues from the first view controller to the next page but in the simulator the pages don't connect. I just get redirected back to the home app display page on my iPhone. What could be happening?
Upvotes: 0
Views: 721
Reputation: 181
1) Did you give the segue an identifier in the storyboard? (Select the icon in the middle of the segue line, and the in the attributes inspector panel on the right, look for the "identifier" field and give it a name.
2) In your first view controller, did you call performSegue(withIdentifier:sender:)
and then pass in the exact same name you assigned to it in the storyboard (send can just be self
)?
Usually, making sure of the two steps above is enough to get it working.
Upvotes: 1