Tells the receiver that a motion event has been cancelled.
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
An event-subtype constant indicating the kind of motion associated with
event. A common motion is shaking, which is indicated by
.Event Subtype .motion Shake
An object representing the event associated with the motion.
UIKit calls this method when it receives an interruption requiring cancellation of the motion event. An interruption is anything that causes the application to become inactive or causes the view handling the motion events to be removed from its window. UIKit might also call this method if the shaking goes on too long. All responders that handle motion events should implement this method. In your implementation, clean up any state information associated with handling the motion events.
The default implementation of this method forwards the message up the responder chain.