// // WXHTextBoxField.h // xh_textfield // // Created by 路 on 2019/4/12. // Copyright © 2019年 路. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @class WXHTextBoxField; @protocol WXHTextBoxFieldDelegate @optional - (void)textField:(WXHTextBoxField *)textField textDidChange:(NSString *)text; - (void)textField:(WXHTextBoxField *)textField didFinish:(NSString *)text; @end @interface WXHTextBoxField : UIControl @property (weak ,nonatomic) id delegate; @property (assign ,nonatomic) UIEdgeInsets insets; /// 设置文本框边距 @property (assign ,nonatomic) NSInteger numberOfItem; /// 设置文本框数量 @property (strong ,nonatomic) UIColor *normalColor; // 正常状态主题色 @property (strong ,nonatomic) UIColor *activeColor; // 激活状态主题色 @property (strong ,nonatomic) UIColor *normalTextColor; // 正常状态字体色 @property (strong ,nonatomic) UIColor *activeTextColor; // 激活状态字体色 - (NSString *)text; /// 获取文本内容 @end NS_ASSUME_NONNULL_END