1234567891011121314151617181920212223242526272829303132 |
- //
- // WXHTextBoxField.h
- // xh_textfield
- //
- // Created by 路 on 2019/4/12.
- // Copyright © 2019年 路. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @class WXHTextBoxField;
- @protocol WXHTextBoxFieldDelegate <NSObject>
- @optional
- - (void)textField:(WXHTextBoxField *)textField textDidChange:(NSString *)text;
- - (void)textField:(WXHTextBoxField *)textField didFinish:(NSString *)text;
- @end
- @interface WXHTextBoxField : UIControl <UIKeyInput>
- @property (weak ,nonatomic) id <WXHTextBoxFieldDelegate>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
|