// // KKPopupViewWrapper.h // KKTV // // Created by yangyi on 2018/7/6. // #import NS_ASSUME_NONNULL_BEGIN @protocol RAPopviewProtocol - (UIView *)show:(UIView *)parentView; - (void)hide; @end // 给弹出视图加一个可点击的背景,点击背景视图隐藏 @interface RAPopviewContainer : UIButton - (instancetype)initWithView:(id)popupView; @property (nonatomic, strong) UIColor * _Nullable bgColor;//默认为nil,表示背景透明 @property (nonatomic, copy) void (^ _Nullable hideHandler) (void);//背景及视图消失回调 @property bool modalView; @end // 弹出视图需继承自该类 @interface RAPopView : UIView @end //@interface KKPopupObject : NSObject // //- (void)hide NS_REQUIRES_SUPER; // //@end NS_ASSUME_NONNULL_END