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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| //
| // Copyright © 2019 dahua. All rights reserved.
| // 封装过后的输入框
|
| #import <UIKit/UIKit.h>
| #import "LCUIKit.h"
|
| typedef enum : NSUInteger {
| LCTEXTFIELD_STYLE_TITLE,
| LCTEXTFIELD_STYLE_PHONE,
| LCTEXTFIELD_STYLE_WIFI,
| LCTEXTFIELD_STYLE_PASSWORD,
| LCTEXTFIELD_STYLE_CODE
| } LCTEXTFIELD_STYLE;
|
| NS_ASSUME_NONNULL_BEGIN
|
| @interface LCInputTextField : UIView
|
| /// 输入框类型
| @property (nonatomic) LCTEXTFIELD_STYLE style;
|
| /// title lab
| @property (strong, nonatomic) UILabel *titleLable;
|
| /// input
| @property (strong, nonatomic) DHTextField *textField;
|
| /// input
| @property (strong, nonatomic) LCButton *sendCodeBtn;
|
| /// result
| @property (copy, nonatomic) NSString *result;
|
| +(instancetype)creatTextFieldWithResult:(void(^)(NSString * result))result;
|
| @end
|
| NS_ASSUME_NONNULL_END
|
|