Schedules the sending of a message on the receiver.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
A selector that identifies the method to invoke. This method should not have a significant return value and should take a single argument of type id.
The object that defines the selector in
The argument to pass to the method when it is invoked. Pass
nilif the method does not take an argument.
The priority for the message. If multiple messages are scheduled, the messages with a lower order value are sent before messages with a higher order value.
An array of input modes for which the message may be sent. You may specify custom modes or use one of the modes listed in Run Loop Modes.
This method sets up a timer to perform the
a message on the receiver at the start of the next run loop iteration. The timer is configured to run in the modes specified by the
modes parameter. When the timer fires, the thread attempts to dequeue the message from the run loop and perform the selector. It succeeds if the run loop is running and in one of the specified modes; otherwise, the timer waits until the run loop is in one of those modes.
This method returns before the
a message is sent. The receiver retains the
an objects until the timer for the selector fires, and then releases them as part of its cleanup.
Use this method if you want multiple messages to be sent after the current event has been processed and you want to make sure these messages are sent in a certain order.