Control Events

Controls respond primarily to three kinds of events: those based on touch, those based on value, and those based on edits. Table 2-1 lists the full range of event types available to controls.

Image
Image

Table 2-1 UIControl Event Types

For the most part, events break down along the following lines. Buttons use touch events; the single UIControlEventTouchUpInside event accounts for nearly all button interaction and is the default event created by IB connections. Value events (for example, UIControlEventValueChanged) correspond to user-initiated ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.