Returns the actions performed on a target object when the specified event occurs.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The target object—that is, an object that has an action method associated with this control. You must pass an explicit object for this method to return a meaningful result. Specifying
A single control event constant representing the event for which you want the list of action methods. For a list of possible constants, see
NSString objects containing the selector names of the corresponding action methods, or
nil if there are no action methods associated with the specified target object and control event.
Use this method to determine what action methods are called on the specified object in response to a particular control event. You can use the
NSSelector function to convert the returned strings to valid selectors, as needed.