Contents

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 nil to remove all targets.

Discussion

Call the removeTarget(_:) method to remove the specified target and all actions associated with the target.

See Also

Handling events