UITouch UITouch Class
Represents a touch event on the screen.
[Foundation.Register("UITouch", true)] public class UITouch : Foundation.NSObject
type UITouch = class inherit NSObject
This object encapsulates a touch or a finger movement on the screen.
- TouchesBegan(NSSet, UIEvent): sent when one or more fingers touch the screen.
- TouchesMoved(NSSet, UIEvent): sent when one or more fingers move.
- TouchesEnded(NSSet, UIEvent): sent when one or more fingers are lifted from the screen.
- TouchesCancelled(NSSet, UIEvent): sent when the touch is cancelled by the system (for example if the phone interrupts your application).
UIViews by default only handle a single touch event at once. If you want your view to handle multiple touches, you must set the MultipleTouchEnabled to true.
iOS creates a UIEvent object any time a finger touches the screen, moves or is removed from the screen. The UIEvent encapsulates all of the touches that are taking place on the screen at this point, even those that do not belong to this view. In addition to the UIEvent, there is an NSSet containing UITouch objects that represent the state of each finger on the screen for this particular view.
Default constructor that initializes a new instance of this class with no parameters.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Constructor to call on derived classes to skip initialization and merely allocate the object.
The altitude, in radians, above horizontal, of the stylus.
|Class Class||Inherited from NSObject|
The handle for this class.
A developer-meaningful description of this object.(Inherited from NSObject)
Description of the object, the Objective-C version of ToString.(Inherited from NSObject)
The set of properties that may vary over the course of a touch.
The set of properties that are likely to vary over the course of a touch.
Gets the force of the touch, where
The UIGestureRecognizers that are receiving this UITouch.
Handle (pointer) to the unmanaged object representation.(Inherited from NSObject)
|IsDirectBinding IsDirectBinding||Inherited from NSObject|
|IsProxy IsProxy||Inherited from NSObject|
The radius of the touch, governed by the MajorRadiusTolerance setting.
Provides the tolerance for the MajorRadius property. The actual radius is measured by MajorRadius±MajorRadiusTolerance.
Gets the maximum force value that the system will recognize.
The UITouchPhase of this UITouch.
Returns the current Objective-C retain count for the object.(Inherited from NSObject)
|Self Self||Inherited from NSObject|
|Superclass Superclass||Inherited from NSObject|
Handle used to represent the methods in the base class for this NSObject.(Inherited from NSObject)
The number of taps associated with this UITouch. Read-only.
The time when this UITouch was created or last mutated. Read-only.
The UIView in which this UITouch occurred. Read-only.
The UIWindow in which this UITouch occurred. Read-only.
|Zone Zone||Inherited from NSObject|
|LocationInNode(UITouch, SKNode) LocationInNode(UITouch, SKNode)||
The current position of
|PreviousLocationInNode(UITouch, SKNode) PreviousLocationInNode(UITouch, SKNode)||
The previous location of
Gets the array of UIAccessibilityCustomRotor objects appropriate for
|SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor) SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor)||
Sets the array of UIAccessibilityCustomRotor objects appropriate for
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.