I'm trying to test unwind segue in iOS 10 and Swift 3.
I made a simple app like this:
I add code for segue in TableViewController
class and connect "Cancel" button and Exit on Table View Controller Scene:
@IBAction func unwindToRootViewController(segue: UIStoryboardSegue) {
print("Unwind to Root View Controller")
}
but my simple segue doesn't work. What am I doing wrong?
segue
like so:@IBAction func unwindToRootViewController(_ segue: UIStoryboardSegue)
(and then you might have to reconnect your segue in Interface Builder) – Crabbing_segue
and_ segue
and it doesn't work. My educational project with same problem: github.com/IlyaGutnikov/SwiftStoryBoardsTutorial – DyingTableViewController
, shouldn't it be in the "outer"ViewController
? (have a look here: spin.atomicobject.com/2014/10/25/ios-unwind-segues) – CrabbingViewController
. Thank you! – Dying