Tells the responder when one or more fingers are raised from a view or window.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
Parameters
touches
A set of
UITouch
instances that represent the touches for the ending phase of the event represented byevent
. For touches in a view, this set contains only one touch by default. To receive multiple touches, you must set the view'sis
property toMultiple Touch Enabled true
.event
The event to which the touches belong.
Discussion
UIKit calls this method when a finger or Apple Pencil is no longer touching the screen. Many UIKit classes override this method and use it to clean up state involved in the handling of the corresponding touch events. The default implementation of this method forwards the message up the responder chain. When creating your own subclasses, call super
to forward any events that you do not handle yourself. For example,
[super touchesEnded:touches withEvent:event];
If you override this method without calling super (a common use pattern), you must also override the other methods for handling touch events, even if your implementations do nothing.