Declared in UIView+GestureRecognizerBlock.h
UIView+GestureRecognizerBlock.m

Overview

Additional functionality to UIView to add gesture

Instance Methods

addTapGestureWithHandler:

Add a UITapGesture with a callback handler.

- (UITapGestureRecognizer *)addTapGestureWithHandler:(void ( ^ ) ( UIGestureRecognizer *sender ))block

Parameters

block

The callback handler.

Declared In

UIView+GestureRecognizerBlock.h

addTapGestureWithTarget:action:

Add a UITapGesture with a target and action.

- (UITapGestureRecognizer *)addTapGestureWithTarget:(id)target action:(SEL)action

Parameters

target

The target.

action

The action.

Declared In

UIView+GestureRecognizerBlock.h