Called on a view controller to determine whether it responds to an unwind action.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
The unwind action to invoke on your view controller.
The view controller that initiated the unwind action.
The object that triggered the action.
When an unwind segue is triggered, UIKit uses this method and the
allowed method to locate a suitable view controller to handle the unwind segue.
The default implementation of this method returns
YES when the current view controller implements the
action method and is not the same view controller as the one in the
from parameter. You can override this method as needed to change the default behavior. For example, you might return
NO if the current view controller does not make a suitable return target when unwinding from the specified view controller.