Chapter 7. UI Interactions – Touches and Gestures

Users communicate with your interfaces through touch. Creating a responsive and strongly interactive user experience is, therefore, one of the keys to the success of your applications. In this chapter, you will learn how to handle all data exchanged with your app via the touchscreen, how to convert it into information that can be handled by your code, and how to launch activities in response to user interaction.

Events and touches

The events managed by iOS during user interaction are grouped into three main sets:

  • Multitouch events are generated by the interaction with the screen
  • Motion events are sensed by the accelerometer
  • Remote-control events are mostly originated by external accessories

Even if these ...

Get Learning iOS UI Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.