UIKit.UITouch Class
Represents a touch event on the screen.

See Also: UITouch Members

Syntax

[Foundation.Register("UITouch", true)]
public class UITouch : Foundation.NSObject

Remarks

This object encapsulates a touch or a finger movement on the screen.

The UITouch event is typically available from the Foundation.NSSet passed to the Touch methods and also from the UIKit.UIEvent instance that is passed to those methods.

UIViews by default only handle a single touch event at once. If you want your view to handle multiple touches, you must set the UIView.MultipleTouchEnabled to true.

iOS creates a T:UIKit.UIEvent object any time a finger touches the screen, moves or is removed from the screen. The UIKit.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 UIKit.UIEvent, there is an Foundation.NSSet containing UIKit.UITouch objects that represent the state of each finger on the screen for this particular view.

Related content

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0