Removes a target and action from a remote command object.
SDKs
- iOS 7.1+
- macOS 10.12.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 5.0+
Framework
- Media Player
Declaration
func removeTarget(_ target: Any, action: Selector?)
Parameters
target
The object that currently is a recipient of action messages sent by this object. Specify
nil
to remove all targets.action
A selector identifying a method on the target. Specify
NULL
to remove all actions.
Discussion
Call the remove
method to remove the specified target-action pair. Passing nil
for target
matches all targets and passing NULL
for action
matches all actions.