// // CCAlertShowView.h // ProjectManager // // Created by 小花 on 2017/1/18. // Copyright © 2017年 vaic. All rights reserved. // #import @interface CCAlertShowView : UIView @property (nonatomic, weak, readonly) UIView *alertView; @property (nonatomic, strong) UIView *backgroundView; // Default is 15 @property (nonatomic, assign) CGFloat alertViewMargin; // Default centerY @property (nonatomic, assign) CGFloat alertOriginY; // 是否可以点击背景消失(默认为yes) @property (nonatomic, assign) BOOL tapBackgroundDismissEnable; @property (nonatomic, copy) void (^tapDismissBlock)(void); // 初始化 + (instancetype)alertViewWithView:(UIView *)view; //显示方式 + (instancetype)showAlertViewWithView:(UIView *)alertView backgroundDismissEnable:(BOOL)backgroundDismissEnable; - (void)show; - (void)showInView:(UIView *)superView; - (void)dismiss; @end