O'Reilly logo

RubyMotion iOS Development Essentials by Abhishek Nalwaya, Akshat Paul

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

Gestures – non-verbal communication

Gestures are a big part of iOS applications. For example, when we pinch on a picture, it gets zoomed, or when we rotate our device, the orientation of the picture changes. Detecting gestures in your application is very easy with the built-in UIGestureRecognizer classes.

There are a few subclasses of UIGestureRecognizer, each designed to detect a specific type of gesture. You can handle the most commonly used gestures with the following subclasses:

  • UITapGestureRecognizer: This class detects the tapping gesture made on the device screen by the user.
  • UIPinchGestureRecognizer: This class detects the pinching gesture made on screen by the user. This motion is usually used to zoom in or out of a view or to change the ...

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