Calls the specified action method.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
A selector identifying the action method to call. This parameter must not be
The target object—that is, the object that implements the specified action. Specify nil if you want the app to search the responder chain for an object capable of performing the action.
The event that triggered the calling of the action method. You may specify nil for this parameter if you are calling this method directly, instead of in response to an event. For example, you might specify
nilwhen changing the value of a control programmatically.
This method takes the provided information and forwards it to the singleton
UIApplication object for dispatching. If a valid target object was supplied, the app calls the action method on that target object. If the target object is
nil, the app searches the responder chain for an object that defines the method.
Subclasses may override this method and use it to observe or modify the action dispatching behavior. Implementations should call super when they want to continue with the execution of the action method.