I have a UINavigationController with the following hierarchy:
tableViewController -> detailView1 -> detailView2.
From detailView2 I am trying to return to tableViewController using an unwind seque. But nothing happens.
In TableViewController there is the unwind method
@IBAction func unwindTest( _ seg: UIStoryboardSegue) {
}
The detailView2 has a button. This triggers the unwind segue. This done bu dragging from button to the exit in this ViewController
Note:
When I tried replacing UITableviewController with UIViewController the unwind segue works.
The custom class for the UITableviewController was not set. Once set the unwind segue worked correctly.