removeTarget(_:)
Removes a target from the remote command object.
Declaration
func removeTarget(_ target: Any?)Parameters
- target:
The object that currently is a recipient of action messages sent by this object. Specify
nilto remove all targets.
Discussion
Call the removeTarget(_:) method to remove the specified target and all actions associated with the target.