You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.1 KiB

//
// LEOAlertView.h
// LEOAlertView
//
// Created by LeoWang on 2019/6/13.
// Copyright © 2019年 LeoWang. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, LEOAlertViewType) {
LEOAlertViewTypeNormal, //普通alert
LEOAlertViewTypeActionSheet, //普通actionSheet
LEOAlertViewTypeCustom, //自定义
};
NS_ASSUME_NONNULL_BEGIN
@interface LEOAlertView : UIView
@property (nonatomic, assign) LEOAlertViewType type;
/*
* contentView为自定义弹窗的容器contentView
*/
@property (nonatomic, strong) UIView *contentView;
/*
* type为 normal或actionSheet type=custom
* alert动画
*/
@property (nonatomic, strong) CAAnimation *showAnimation;
@property (nonatomic, strong) CAAnimation *dismissAnimation;
/*
* YES
*/
@property (nonatomic, assign) BOOL clickBgHidden;
//默认show在keywindow中
- (void)show;
//在指定的view上显示
- (void)showInView:(UIView *)view;
- (void)dismiss;
@end
NS_ASSUME_NONNULL_END