Detaches a new thread and uses the specified selector as the thread entry point.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The selector for the message to send to the target. This selector must take only one argument and must not have a return value.
The object that will receive the message
aon the new thread.
The single argument passed to the target. May be
an are retained during the execution of the detached thread, then released. The detached thread is exited (using the
exit() class method) as soon as
a has completed executing the
If this thread is the first thread detached in the application, this method posts the
NSWill with object
nil to the default notification center.