1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| //
| // Copyright © 2020 jm. All rights reserved.
| //
|
| #import <UIKit/UIKit.h>
|
| NS_ASSUME_NONNULL_BEGIN
|
| typedef void(^DHTextFieldInputBlock)(NSString * result);
|
| typedef BOOL(^DHTextFieldInputingBlock)(NSString * result,NSString * replace);
|
| @interface DHTextField : UITextField
|
| /// 回调代码块
| @property (copy, nonatomic) DHTextFieldInputingBlock inputingBlock;
|
| /// placeholder
| @property (nonatomic, copy,nullable) NSString *placeholder;
|
| +(instancetype)lcTextFieldWithResult:(void(^)(NSString *result))result;
|
| @end
|
| NS_ASSUME_NONNULL_END
|
|