iOS Developer Library

Developer

UIKit Framework Reference UITapGestureRecognizer Class Reference

Options
Deployment Target:

On This Page
Language:

UITapGestureRecognizer

UITapGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for single or multiple taps. For the gesture to be recognized, the specified number of fingers must tap the view a specified number of times. More...

Inheritance


Conforms To


Import Statement


import UIKit @import UIKit;

Availability


Available in iOS 3.2 and later.
  • The number of taps for the gesture to be recognized.

    Declaration

    Swift

    var numberOfTapsRequired: Int

    Objective-C

    @property(nonatomic) NSUInteger numberOfTapsRequired

    Discussion

    The default value is 1.

    Import Statement

    import UIKit

    Availability

    Available in iOS 3.2 and later.

  • The number of fingers required to tap for the gesture to be recognized.

    Declaration

    Swift

    var numberOfTouchesRequired: Int

    Objective-C

    @property(nonatomic) NSUInteger numberOfTouchesRequired

    Discussion

    The default value is 1.

    Import Statement

    import UIKit

    Availability

    Available in iOS 3.2 and later.