Diez Nobach
Diez Nobach

Reputation: 55

Multiple unwind segues from a UITableView?

I’m currently building an app that uses the same countryPickerTableView in three different places with slightly different behaviour, so I would need a way to connect three different unwind segues to the tableview. The problem is that the cell only allows me to pick one unwind Action. Is there a solution to this?

Upvotes: 1

Views: 322

Answers (1)

maxkoriakin
maxkoriakin

Reputation: 337

Add segue to ViewController not from Cell. Drag from ViewController to exit Button and add segue, then add identifier. And then add method in ViewController

self.performSegue(withIdentifier: "IDENTIFIER", sender: self)

enter image description here

Upvotes: 1

Related Questions