// // YMTipsPopupView.h // MSYOUPAI // // Created by YoMi on 2024/2/8. // Copyright © 2024 MS. All rights reserved. // #import "YMBaseView.h" NS_ASSUME_NONNULL_BEGIN typedef void(^TipsButtonBlock)(BOOL isConfirm); @interface YMTipsPopupView : YMBaseView /** 按钮回调 isConfirm 确认按钮点击为YES 取消按钮为NO*/ @property (nonatomic, copy) TipsButtonBlock buttonBlock; /** 标题文本*/ @property (nonatomic, copy) NSString *titleText; /** 标题字体样式大小*/ @property (nonatomic, strong) UIFont *titleFont; /** 标题颜色*/ @property (nonatomic, strong) UIColor *titleColor; /** 取消背景色*/ @property (nonatomic, strong) UIColor *cancelBgColor; /** 确认背景色*/ @property (nonatomic, strong) UIColor *confirmBgColor; /** 取消标题颜色*/ @property (nonatomic, strong) UIColor *cancelTitleColor; /** 确认标题颜色*/ @property (nonatomic, strong) UIColor *confirmTitleColor; /** 取消字体样式大小*/ @property (nonatomic, strong) UIFont *cancelFont; /** 确认字体样式大小*/ @property (nonatomic, strong) UIFont *confirmFont; /** 取消标题*/ @property (nonatomic, copy) NSString *cancelTitle; /** 确认标题*/ @property (nonatomic, copy) NSString *confirmTitle; /** 取消圆角大小*/ @property (nonatomic, assign) CGFloat cancelRadius; /** 确认圆角大小*/ @property (nonatomic, assign) CGFloat confirmRadius; /** 取消边框色*/ @property (nonatomic, assign) UIColor *cancelBorderColor; /** 确认边框色*/ @property (nonatomic, assign) UIColor *confirmBorderColor; /** 取消边框宽度大小*/ @property (nonatomic, assign) CGFloat cancelBorderWidth; /** 确认边框宽度大小*/ @property (nonatomic, assign) CGFloat confirmBorderWidth; /** 配置提示内容、显示标题、按钮显示 @param tipsStr 提示内容 @param tipsAlignment 提示对齐 @param isHideTitle 是否隐藏按钮 YES隐藏标题 默认NO 不隐藏 @param isHideSingleButton 是否隐藏单按钮 YES隐藏 NO 不隐藏 */ - (void)configutationWithTips:(NSString*)tipsStr TipsAlignment:(NSTextAlignment)tipsAlignment IsHideTitle:(BOOL)isHideTitle IsHideSingleButton:(BOOL)isHideSingleButton; @end NS_ASSUME_NONNULL_END