When my child performs an unwind segue, my controller\'s viewDidAppear gets called.
In this method (and this method alone, I need to know whether it was from an unwi
Add method in your parent view controller
@IBAction func unwindToParent(unwindSegue: UIStoryboardSegue) {
if let childViewController = unwindSegue.sourceViewController as? ChildViewController {
println("unwinding from child")
}
}
As an exemple if the unwind segue is related to a button, in the storyboard link your button to it's view controller exit
It will propose to link to unwindToParent method
Then each time the unwind segue is performed, the unwindToParent
method will be called