UIGestureRecognizer(BMKitAdditions) Category Reference
Declared in | UIGestureRecognizer+BMKitAdditions.h |
Tasks
Initializing a Gesture Recognizer
-
– initWithBlock:
Initializes an allocated gesture-recognizer object with a block.
Adding and Removing Blocks
-
– addBlock:
Adds a block to a gesture-recognizer object.
-
– removeBlock:
Removes a block from a gesture-recognizer object.
Instance Methods
addBlock:
Adds a block to a gesture-recognizer object.
- (void)addBlock:(BMGestureRecognizerBlock)gestureRecognizerBlock
Parameters
- gestureRecognizerBlock
A block that is the recipient of action messages sent by the receiver when it recognizes a gesture.
See Also
Declared In
UIGestureRecognizer+BMKitAdditions.h
initWithBlock:
Initializes an allocated gesture-recognizer object with a block.
- (id)initWithBlock:(BMGestureRecognizerBlock)gestureRecognizerBlock
Parameters
- gestureRecognizerBlock
A block that is the recipient of action messages sent by the receiver when it recognizes a gesture.
Return Value
An initialized instance of a concrete UIGestureRecognizer
subclass or nil
if an error occurred in the attempt to initialize the object.
See Also
Declared In
UIGestureRecognizer+BMKitAdditions.h
removeBlock:
Removes a block from a gesture-recognizer object.
- (void)removeBlock:(BMGestureRecognizerBlock)gestureRecognizerBlock
Parameters
- gestureRecognizerBlock
An object that currently is a recipient of action messages sent by the receiver when the represented gesture occurs. Specify
nil
if you want to remove all blocks and targets from the receiver.
See Also
Declared In
UIGestureRecognizer+BMKitAdditions.h