Determine if segue is unwinding?

I have about 6 segues that perform the same action in the prepareForSegue method, however I want to skip this action for my unwind session, but I cannot figure out how to determine if the segue transition went through, no.

Any help would be appreciated.

+4
source share
3 answers

Ah, no matter, Robotic Cat had an answer that basically gives a decoupling of the segue identifier. I could not figure out how to do this until I realized that you can select segues from the output panel to the left of the storyboard and set the identifier from there.

Thanks!

+16
source

prepareForSegue is called only in the forward direction. It is not called when you relax. To process unwinding segments, you need to connect the exit button to the IBAction method, which takes the segue parameter as a parameter. This method will be called when you relax.

This post contains more information on how to use them.

+2
source

Im pretty new for SWIFT. But I think that there are some misunderstandings. If you add unwinding yourself, prepareForSegue starts. But when you press the back button, which is automatically displayed in the navigation panel, the filling of the preparation does not start.

0
source

Source: https://habr.com/ru/post/1439446/


All Articles