猎豆优选

CCAlertShowView.h 842B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // CCAlertShowView.h
  3. // ProjectManager
  4. //
  5. // Created by 小花 on 2017/1/18.
  6. // Copyright © 2017年 vaic. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface CCAlertShowView : UIView
  10. @property (nonatomic, weak, readonly) UIView *alertView;
  11. @property (nonatomic, strong) UIView *backgroundView;
  12. // Default is 15
  13. @property (nonatomic, assign) CGFloat alertViewMargin;
  14. // Default centerY
  15. @property (nonatomic, assign) CGFloat alertOriginY;
  16. // 是否可以点击背景消失(默认为yes)
  17. @property (nonatomic, assign) BOOL tapBackgroundDismissEnable;
  18. // 初始化
  19. + (instancetype)alertViewWithView:(UIView *)view;
  20. //显示方式
  21. + (instancetype)showAlertViewWithView:(UIView *)alertView backgroundDismissEnable:(BOOL)backgroundDismissEnable;
  22. - (void)show;
  23. - (void)showInView:(UIView *)superView;
  24. - (void)dismiss;
  25. @end