BBAPopMenuPassthroughView.h
876 Bytes
//
// BBAPopMenuPassthroughView.h
// BBAComs
//
// Created by Wu,Huanqing on 2017/6/3.
//
//
#import <UIKit/UIKit.h>
@class BBAPopMenuPassthroughView;
@protocol BBAPopMenuPassthroughViewHitDelegate <NSObject>
/**
点击视图不能响应Event的区域
@param view 点击的视图
@param point 点击位置
*/
- (void)view:(BBAPopMenuPassthroughView *)view hitSpaceOnPoint:(CGPoint)point withEvent:(UIEvent *)event;
@end
/**
Pop菜单的背景视图。
当点击视图的非事件响应区域时,即要监听该事件,又不能影响其它兄弟视图的事件响应
*/
@interface BBAPopMenuPassthroughView : UIView
@property (nonatomic, weak) id<BBAPopMenuPassthroughViewHitDelegate> delegate;
/**
当为YES时,视图本身不能响应事件,但其子视图可以响应事件。
*/
@property (nonatomic, assign) BOOL onlySubviewsResponseEvent;
@end