A concrete subclass of UIGesture
that looks for rotation gestures involving two touches.
SDKs
- iOS 3.2+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
class UIRotationGestureRecognizer : UIGesture Recognizer
Overview
When the user moves the fingers opposite each other in a circular motion, the underlying view should rotate in a corresponding direction and speed.
Rotation is a continuous gesture. It begins when two touches have moved enough to be considered a rotation. The gesture changes when a finger moves while the two fingers are down. It ends when both fingers have lifted. At each stage in the gesture, the gesture recognizer sends its action message.