I am trying to add unwinding to a quick application in Xcode 6, and the release notes for the first three beta versions have announced that it is not supported. However, in beta 4, this error is no longer present. I heard that people were able to get it to work, but I didn’t have such luck. So my question is this: how should I try to see if unind segue mode will work in my application? What should i try? I am using UIBarButtonItem to run segue.
So far, I have put this code in the destination manager .swift file:
@IBAction func unwindToSegue(segue:UIStoryboardSegue) {}
Using this code, I was able to connect the panel button to the function by dragging the control from the panel to the exit icon, and then clicking the unwindToSegue method. This part worked, but the code does not run even when I set a breakpoint inside a function that it did not call.
swift xcode6 segue
trumpeter201
source share