Returns the view controller that responds to the action.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The requested action.
The object sending the request.
The view controller that handles the specified action or
nil if no view controller handles the action.
This method returns the current view controller if that view controller overrides the method indicated by the
action parameter. If the current view controller does not override that method, UIKit walks up the view hierarchy and returns the first view controller that does override it. If no view controller handles the action, this method returns
A view controller can selectively respond to an action by returning an appropriate value from its