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

See Also: UITouch Members


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


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

The UITouch event is typically available from the MonoTouch.Foundation.NSSet passed to the Touch methods and also from the MonoTouch.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:MonoTouch.UIKit.UIEvent object any time a finger touches the screen, moves or is removed from the screen. The MonoTouch.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 MonoTouch.UIKit.UIEvent, there is an MonoTouch.Foundation.NSSet containing MonoTouch.UIKit.UITouch objects that represent the state of each finger on the screen for this particular view.

Related content


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: