Can't unwind to UITableviewController using unwind segue

56 Views Asked by At

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.

1

There are 1 best solutions below

0
Merl On

The custom class for the UITableviewController was not set. Once set the unwind segue worked correctly.