Called on a view controller to determine whether it wants to respond to an unwind action.
- iOS 6.0–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
The unwind action to invoke on your view controller.
The view controller that initiated the unwind action.
The object that triggered the action.
true if the view controller wants to handle the unwind action, otherwise
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
true 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
false if the current view controller does not make a suitable return target when unwinding from the specified view controller.