// // RQAlertViewManager.h // YJZS // // Created by 张嵘 on 2022/4/11. // #import typedef NS_ENUM(NSUInteger, RQAlertType) { /// 默认 RQAlertType_Default = 0, /// 正确 RQAlertType_Rignt = 1, /// 错误 RQAlertType_Error = 2, /// 提示 RQAlertType_Warn = 3, /// 注销账号 RQAlertType_SignOut = 4, }; NS_ASSUME_NONNULL_BEGIN #define RQ_ALERT_MANAGER [RQAlertViewManager sharedManager] @interface RQAlertViewManager : NSObject + (RQAlertViewManager *)sharedManager; /** 弹出alertController,并且有两个个action按钮,分别有处理事件 @param alertType 弹窗类型 @param title title @param message Message @param confirmTitle 右边按钮的title @param cancelTitle 左边按钮的title @param confirmAction 右边按钮的点击事件 */ - (void)showAlertWithAlertType:(RQAlertType)alertType title:(NSString * _Nullable )title message:(NSString * _Nullable )message confirmTitle:(NSString *)confirmTitle cancelTitle:(NSString * _Nullable )cancelTitle confirmAction:(void (^__nullable)(__kindof QMUIDialogViewController *dialogViewController))confirmAction; /** 弹出alertController,并且有两个个action按钮,分别有处理事件 @param alertType 弹窗类型 @param title title @param message Message @param confirmTitle 左边按钮的title @param cancelTitle 右边按钮的title @param confirmAction 左边按钮的点击事件 @param cancelAction 右按钮的点击事件 */ - (void)showAlertWithAlertType:(RQAlertType)alertType title:(NSString * _Nullable )title message:(NSString * _Nullable )message confirmTitle:(NSString *)confirmTitle cancelTitle:(NSString * _Nullable )cancelTitle confirmAction:(void (^__nullable)(__kindof QMUIDialogViewController *dialogViewController))confirmAction cancelAction:(void (^__nullable)(__kindof QMUIDialogViewController *dialogViewController))cancelAction; /** 弹出alertController,并且有三个action按钮 @param confirmOneAction 右边按钮的点击事件 @param confirmTwoAction 右边按钮的点击事件 */ - (void)showAlertWithConfirmOneAction:(void(^)(void))confirmOneAction confirmTwoAction:(void(^)(void))confirmTwoAction; - (void)showEmailAlertConfirmAction:(void (^__nullable)(__kindof QMUIDialogViewController *dialogViewController, __kindof QMUITextField *textFiled))confirmAction; @end NS_ASSUME_NONNULL_END