Latest 0.1
Homepage https://github.com/Jpoliachik/JPSpamGestureRecognizer
License Apache
Platforms ios 5.0, requires ARC
Authors

Detects rapid tapping

UIGestureRecognizer subclass that watches for repeated taps within 1 second.

alt tag

Installation

CocoaPods

pod JPSpamGestureRecognizer

  • Current Version: 0.1

Or copy JPSpamGestureRecognizer header and footer into project.

Usage

Add the gesture recognizer to any UIView

JPSpamGestureRecognizer *spamGesture = [[JPSpamGestureRecognizer alloc] initWithTarget:self action:@selector(onSpam)];
spamGesture.numberOfTapsPerSecondRequired = 4;
spamGesture.recognizedBlock = ^{
     // alternate gesture recognizer block
};

[self.view addGestureRecognizer:spamGesture];

Latest podspec

{
    "name": "JPSpamGestureRecognizer",
    "version": "0.1",
    "summary": "UIGestureRecognizer that detects rapid tapping",
    "homepage": "https://github.com/Jpoliachik/JPSpamGestureRecognizer",
    "license": "Apache",
    "authors": {
        "Justin Poliachik": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/Jpoliachik/JPSpamGestureRecognizer.git",
        "tag": "0.1"
    },
    "source_files": "JPSpamGestureRecognizer",
    "requires_arc": true
}

Pin It on Pinterest

Share This