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