弹框支持显示一个按钮

This commit is contained in:
fengshuo
2022-03-14 19:08:54 +08:00
parent 8c26f46776
commit 5633fa96fe
3 changed files with 43 additions and 16 deletions

View File

@@ -13,8 +13,16 @@
NS_ASSUME_NONNULL_BEGIN
@interface TTAlertConfig : NSObject
typedef NS_ENUM(NSUInteger, TTAlertActionStyle) {
TTAlertActionConfirmStyle = 0, // 只有确定按钮
TTAlertActionCancelStyle = 1, // 只有取消按钮
TTAlertActionBothStyle = 2, // 全部按钮
};
@interface TTAlertConfig : NSObject
// 按钮显示风格
@property (nonatomic, assign) TTAlertActionStyle actionStyle;
// 容器背景设置
@property (nonatomic, strong) UIColor *backgroundColor;