Returns the default action for the current class.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Core Animation
Declaration
Parameters
key
The identifier of the action.
Return Value
Returns a suitable action object for the given key or nil
of no action object was associated with that key.
Discussion
Classes that want to provide default actions can override this method and use it to return those actions.