39 lines
975 B
Objective-C
39 lines
975 B
Objective-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,
|
|
DDTextFieldPasswordAccount,
|
|
DDTextFieldGetCode,
|
|
DDTextFieldPassWord,
|
|
DDTextFieldInvideCode
|
|
} DDTextFieldViewType;
|
|
|
|
@interface DDLoginTextView : UIView
|
|
@property (nonatomic, assign) DDTextFieldViewType type;
|
|
@property (nonatomic, copy) NSString *customLeftText;
|
|
@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
|