单军华
2018-07-11 7b02207537d35bfa1714bf8beafc921f717d100a
screendisplay/Pods/YYCategories/YYCategories/UIKit/UIGestureRecognizer+YYAdd.h
New file
@@ -0,0 +1,47 @@
//
//  UIGestureRecognizer+YYAdd.h
//  YYCategories <https://github.com/ibireme/YYCategories>
//
//  Created by ibireme on 13/10/13.
//  Copyright (c) 2015 ibireme.
//
//  This source code is licensed under the MIT-style license found in the
//  LICENSE file in the root directory of this source tree.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
 Provides extensions for `UIGestureRecognizer`.
 */
@interface UIGestureRecognizer (YYAdd)
/**
 Initializes an allocated gesture-recognizer object with a action block.
 @param block  An action block that to handle the gesture recognized by the
               receiver. nil is invalid. It is retained by the gesture.
 @return An initialized instance of a concrete UIGestureRecognizer subclass or
         nil if an error occurred in the attempt to initialize the object.
 */
- (instancetype)initWithActionBlock:(void (^)(id sender))block;
/**
 Adds an action block to a gesture-recognizer object. It is retained by the
 gesture.
 @param block A block invoked by the action message. nil is not a valid value.
 */
- (void)addActionBlock:(void (^)(id sender))block;
/**
 Remove all action blocks.
 */
- (void)removeAllActionBlocks;
@end
NS_ASSUME_NONNULL_END