YMInputPopupView.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // YMInputPopupView.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/25.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMBaseView.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^InputButtonBlock)(BOOL isConfirm , NSString *contentText);
  11. @interface YMInputPopupView : YMBaseView
  12. /** 按钮回调 isConfirm 确认按钮点击为YES 取消按钮为NO*/
  13. @property (nonatomic, copy) InputButtonBlock 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, copy) NSString *cancelTitle;
  26. /** 确认标题*/
  27. @property (nonatomic, copy) NSString *confirmTitle;
  28. /** 取消标题颜色*/
  29. @property (nonatomic, strong) UIColor *cancelTitleColor;
  30. /** 确认标题颜色*/
  31. @property (nonatomic, strong) UIColor *confirmTitleColor;
  32. /** 取消字体样式大小*/
  33. @property (nonatomic, strong) UIFont *cancelFont;
  34. /** 确认字体样式大小*/
  35. @property (nonatomic, strong) UIFont *confirmFont;
  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. @property (nonatomic, assign) NSInteger maxLength;
  50. /** 文本对齐*/
  51. @property (nonatomic, assign) NSTextAlignment textAlignment;
  52. /** 占位符文本*/
  53. @property (nonatomic, copy) NSString *placeholderText;
  54. /**
  55. 配置内容文本、显示标题、按钮显示
  56. @param contentText 文本框内容
  57. @param inputHeight 输入框高度
  58. @param isHideTitle 是否隐藏按钮 YES隐藏标题 默认NO 不隐藏
  59. @param isHideSingleButton 是否隐藏取消按钮 YES隐藏 NO 不隐藏
  60. */
  61. - (void)configutationWithContentText:(NSString*)contentText ofInputHeight:(CGFloat)inputHeight IsHideTitle:(BOOL)isHideTitle IsHideSingleButton:(BOOL)isHideSingleButton;
  62. @end
  63. NS_ASSUME_NONNULL_END