O'Reilly logo

Xamarin Mobile Application Development for iOS by Paul F. Johnson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Events and controls reference

Not every type of widget has events attached to it by default (there is nothing to stop you from writing an event and adding it to a widget though), for example, UIImageView doesn't have anything attached.

The iOS makes a big play over its touch system, which is reflected in the number of events given over to touches. Unless the widget has no events attached to it, the following table applies to all the widgets:

Name of event

What it does and when

TouchCancel

It is called when cancelling the current touches for a control (any control that handles the TouchCancel event).

TouchDown

This is the touch-down event on a widget.

TouchDownRepeat

This is a repeated touch-down event. For this event to be triggered ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required