From 83b9d5c682b21d88133f24da0f94dd56bd79e687 Mon Sep 17 00:00:00 2001 From: 单军华 Date: Thu, 19 Jul 2018 13:38:55 +0800 Subject: [PATCH] change --- screendisplay/Pods/YYCategories/YYCategories/UIKit/UIGestureRecognizer+YYAdd.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/YYCategories/YYCategories/UIKit/UIGestureRecognizer+YYAdd.h b/screendisplay/Pods/YYCategories/YYCategories/UIKit/UIGestureRecognizer+YYAdd.h new file mode 100755 index 0000000..987ebe5 --- /dev/null +++ b/screendisplay/Pods/YYCategories/YYCategories/UIKit/UIGestureRecognizer+YYAdd.h @@ -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 -- Gitblit v1.8.0