-1

I want to change segue identifier based on button selection. I have two button if button one is touched I have 7 view with segue. If button two touched I want to change my segue identifier value.

1 Answers1

2

Don't link your segues to the button. Link your segues from view controller to view controller and give them unique identifiers.

Then connect your buttons to IBActions and write your button IBAction code to call performSegueWithIdentifier:sender: to invoke the desired segue.

Duncan C
  • 128,072
  • 22
  • 173
  • 272