UIGestureRecognizer(FWBlock)
@interface UIGestureRecognizer (FWBlock)
/// 添加事件句柄,返回唯一标志
- (NSString *)fw_addBlock:(void (^)(id sender))block NS_REFINED_FOR_SWIFT;
/// 根据唯一标志移除事件句柄
- (void)fw_removeBlock:(nullable NSString *)identifier NS_REFINED_FOR_SWIFT;
/// 移除所有事件句柄
- (void)fw_removeAllBlocks NS_REFINED_FOR_SWIFT;
/// 从事件句柄初始化
+ (instancetype)fw_gestureRecognizerWithBlock:(void (^)(id sender))block NS_REFINED_FOR_SWIFT;
@end
Undocumented
-
添加事件句柄,返回唯一标志
Declaration
Objective-C
- (nonnull NSString *)fw_addBlock:(nonnull void (^)(id _Nonnull __strong))block;
-
根据唯一标志移除事件句柄
Declaration
Objective-C
- (void)fw_removeBlock:(nullable NSString *)identifier;
-
移除所有事件句柄
Declaration
Objective-C
- (void)fw_removeAllBlocks;
-
从事件句柄初始化
Declaration
Objective-C
+ (nonnull instancetype)fw_gestureRecognizerWithBlock: (nonnull void (^)(id _Nonnull __strong))block;