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.
53 lines
1.3 KiB
53 lines
1.3 KiB
// |
|
// TFPromptView.h |
|
// TFReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/10. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
typedef NS_ENUM(NSUInteger, TFPromptStatus) { |
|
TFPromptStatusSuccess, |
|
TFPromptStatusError, |
|
TFPromptStatusLoading |
|
}; |
|
|
|
typedef NS_ENUM(NSUInteger, TFPromptMaskType) { |
|
TFPromptMaskTypeNone = 0, // 默认类型,PromptView 显示时可以响应用户交互事件。 |
|
TFPromptMaskTypeClear = 1, // 不响应用户交互事件,背景透明。 |
|
TFPromptMaskTypeBlack = 2, // 不响应用户交互事件,背景调暗。 |
|
}; |
|
|
|
typedef NS_ENUM(NSUInteger, TFPromptStyle) { |
|
TFPromptStyleLight = 0, // 默认样式,白色的转圈动画。 |
|
TFPromptStyleDark = 1, // 灰色的转圈动画。 |
|
}; |
|
|
|
typedef void(^ _Nullable TFPromptDissmissBlock)(void); |
|
|
|
@interface TFPromptView : UIView |
|
|
|
@property (nonatomic ,copy) NSString *promptTitle; |
|
|
|
@property (nonatomic ,assign) TFPromptStatus promptStatus; |
|
|
|
@property (nonatomic ,assign) CGFloat alertDuration; |
|
|
|
@property (nonatomic ,assign) BOOL showMask; |
|
|
|
@property (nonatomic ,assign) BOOL isShowing; |
|
|
|
@property (nonatomic ,copy) TFPromptDissmissBlock alertDissmissBlock; |
|
|
|
- (void)showPromptView; |
|
|
|
- (void)hiddenPromptView; |
|
|
|
- (void)removePromptView; |
|
@end |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|