I started learning iOS/Swift recently and wondering how to use unwind segue.
Assume the following view controller A, B, C, E, F, X, BB, BBB
C -> A -> E
C -> B -> BB -> E
C -> B -> BBB -> E
C -> D -> E
F -> X -> E
How do I use unwind segue to go back to C or B or D from E?
Note: In ViewController E, there is only one Back
button.
I have tried the following solution:
// Add this method in C, B, and D view controller
@IBAction func unwindFromE(sender: UIStoryboardSegue) {}
This seems to work some how, but why did it unwind back to C for F -> X -> E even though in view controller F/X there's no unwindFromE method.