1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // YLBaseAlertView.h
- // mask
- //
- // Created by 翟玉磊 on 2018/12/27.
- // Copyright © 2018 翟玉磊. All rights reserved.
- //
- /// 此类是自定义alertvView的基础类
- /// 使用方式
- /*
- YLBaseAlertView *alert = [[YLBaseAlertView alloc] init];
- UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
- [contentView setBackgroundColor:[UIColor greenColor]];
- alert.contentView = contentView;
- [alert show];
- */
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef void(^AlertClickBlock)(NSInteger index);
- @interface YLBaseAlertView : UIView
- @property (strong, nonatomic) UIView *contentView;
- /// 是否点击背景隐藏弹窗 默认YES点击隐藏
- @property (nonatomic, assign) BOOL clickBackgroundHide;
- - (void)show;
- - (void)dismiss;
- - (void)showBackground;
- - (void)showAlertAnimation;
- @end
- NS_ASSUME_NONNULL_END
|