YMTipsPopupView.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // YMTipsPopupView.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/8.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMBaseView.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^TipsButtonBlock)(BOOL isConfirm);
  11. @interface YMTipsPopupView : YMBaseView
  12. /** 按钮回调 isConfirm 确认按钮点击为YES 取消按钮为NO*/
  13. @property (nonatomic, copy) TipsButtonBlock buttonBlock;
  14. /** 标题文本*/
  15. @property (nonatomic, copy) NSString *titleText;
  16. /** 标题字体样式大小*/
  17. @property (nonatomic, strong) UIFont *titleFont;
  18. /** 标题颜色*/
  19. @property (nonatomic, strong) UIColor *titleColor;
  20. /** 取消背景色*/
  21. @property (nonatomic, strong) UIColor *cancelBgColor;
  22. /** 确认背景色*/
  23. @property (nonatomic, strong) UIColor *confirmBgColor;
  24. /** 取消标题颜色*/
  25. @property (nonatomic, strong) UIColor *cancelTitleColor;
  26. /** 确认标题颜色*/
  27. @property (nonatomic, strong) UIColor *confirmTitleColor;
  28. /** 取消字体样式大小*/
  29. @property (nonatomic, strong) UIFont *cancelFont;
  30. /** 确认字体样式大小*/
  31. @property (nonatomic, strong) UIFont *confirmFont;
  32. /** 取消标题*/
  33. @property (nonatomic, copy) NSString *cancelTitle;
  34. /** 确认标题*/
  35. @property (nonatomic, copy) NSString *confirmTitle;
  36. /** 取消圆角大小*/
  37. @property (nonatomic, assign) CGFloat cancelRadius;
  38. /** 确认圆角大小*/
  39. @property (nonatomic, assign) CGFloat confirmRadius;
  40. /** 取消边框色*/
  41. @property (nonatomic, assign) UIColor *cancelBorderColor;
  42. /** 确认边框色*/
  43. @property (nonatomic, assign) UIColor *confirmBorderColor;
  44. /** 取消边框宽度大小*/
  45. @property (nonatomic, assign) CGFloat cancelBorderWidth;
  46. /** 确认边框宽度大小*/
  47. @property (nonatomic, assign) CGFloat confirmBorderWidth;
  48. /**
  49. 配置提示内容、显示标题、按钮显示
  50. @param tipsStr 提示内容
  51. @param tipsAlignment 提示对齐
  52. @param isHideTitle 是否隐藏按钮 YES隐藏标题 默认NO 不隐藏
  53. @param isHideSingleButton 是否隐藏单按钮 YES隐藏 NO 不隐藏
  54. */
  55. - (void)configutationWithTips:(NSString*)tipsStr TipsAlignment:(NSTextAlignment)tipsAlignment IsHideTitle:(BOOL)isHideTitle IsHideSingleButton:(BOOL)isHideSingleButton;
  56. @end
  57. NS_ASSUME_NONNULL_END