Causes the connection to stop calling delegate methods in the specified run loop and mode.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The run loop instance to unschedule.
The mode to unschedule.
By default, a connection is scheduled on the current thread in the default mode when it is created. If you create a connection with the
init method and provide
NO for the
start parameter, you can instead schedule connection on a different run loop or mode before starting it with the
start method. You can schedule a connection on multiple run loops and modes, or on the same run loop in multiple modes. Use this method to unschedule the connection from an undesired run loop and mode before starting the connection.
You cannot reschedule a connection after it has started. It is not necessary to unschedule a connection after it has finished.