37 lines
889 B
C
37 lines
889 B
C
![]() |
//
|
||
|
// DDLoginTextView.h
|
||
|
// DingDangApp
|
||
|
//
|
||
|
// Created by apple on 2023/7/4.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
#import "JKCountDownButton.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
typedef enum : NSUInteger {
|
||
|
DDTextFieldNone,
|
||
|
DDTextFieldPhone,
|
||
|
DDTextFieldGetCode,
|
||
|
DDTextFieldPassWord,
|
||
|
DDTextFieldInvideCode
|
||
|
} DDTextFieldViewType;
|
||
|
|
||
|
@interface DDLoginTextView : UIView
|
||
|
@property (nonatomic, assign) DDTextFieldViewType type;
|
||
|
@property (nonatomic, strong) UIImageView *iconImageView;
|
||
|
@property (nonatomic, strong) UITextField *textField;
|
||
|
@property (nonatomic, strong) JKCountDownButton *getCodeBtn;
|
||
|
@property (nonatomic, strong) UIButton *showPassWordBtn;
|
||
|
@property (nonatomic, strong) UIView *lineView;
|
||
|
|
||
|
//获取验证码
|
||
|
@property (nonatomic,copy) void (^getCodeBlock)(void);
|
||
|
|
||
|
-(instancetype)initWithFrame:(CGRect)frame withType:(DDTextFieldViewType)type;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|