// // YMInputPopupView.h // MSYOUPAI // // Created by YoMi on 2024/2/25. // Copyright © 2024 MS. All rights reserved. // #import "YMBaseView.h" NS_ASSUME_NONNULL_BEGIN typedef void(^InputButtonBlock)(BOOL isConfirm , NSString *contentText); @interface YMInputPopupView : YMBaseView /** 按钮回调 isConfirm 确认按钮点击为YES 取消按钮为NO*/ @property (nonatomic, copy) InputButtonBlock 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, copy) NSString *cancelTitle; /** 确认标题*/ @property (nonatomic, copy) NSString *confirmTitle; /** 取消标题颜色*/ @property (nonatomic, strong) UIColor *cancelTitleColor; /** 确认标题颜色*/ @property (nonatomic, strong) UIColor *confirmTitleColor; /** 取消字体样式大小*/ @property (nonatomic, strong) UIFont *cancelFont; /** 确认字体样式大小*/ @property (nonatomic, strong) UIFont *confirmFont; /** 取消圆角大小*/ @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; /** 最大可输入字数*/ @property (nonatomic, assign) NSInteger maxLength; /** 文本对齐*/ @property (nonatomic, assign) NSTextAlignment textAlignment; /** 占位符文本*/ @property (nonatomic, copy) NSString *placeholderText; /** 配置内容文本、显示标题、按钮显示 @param contentText 文本框内容 @param inputHeight 输入框高度 @param isHideTitle 是否隐藏按钮 YES隐藏标题 默认NO 不隐藏 @param isHideSingleButton 是否隐藏取消按钮 YES隐藏 NO 不隐藏 */ - (void)configutationWithContentText:(NSString*)contentText ofInputHeight:(CGFloat)inputHeight IsHideTitle:(BOOL)isHideTitle IsHideSingleButton:(BOOL)isHideSingleButton; @end NS_ASSUME_NONNULL_END