登录模块手机号登录忘记密码完成

This commit is contained in:
fengshuo
2021-09-10 16:58:59 +08:00
parent 4d959bddd2
commit 64c43cb737
25 changed files with 1193 additions and 46 deletions

View File

@@ -9,6 +9,7 @@
///
#import <Masonry/Masonry.h>
///
#import "ThemeColor.h"
@interface LoginInputView () <UITextFieldDelegate>
@@ -54,7 +55,14 @@
- (void)setPlaceHolder:(NSString *)placeHolder {
_placeHolder = placeHolder;
if (_placeHolder) {
self.textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:_placeHolder attributes:@{NSForegroundColorAttributeName: ThemeTextColor, NSFontAttributeName:[UIFont systemFontOfSize:14]}];
self.textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:_placeHolder attributes:@{NSForegroundColorAttributeName: [ThemeColor secondTextColor], NSFontAttributeName:[UIFont systemFontOfSize:14]}];
}
}
- (void)setTitle:(NSString *)title {
_title = title;
if (_title) {
self.titleLabel.text = _title;
}
}
@@ -73,7 +81,7 @@
if (!_titleLabel) {
_titleLabel = [[UILabel alloc] init];
_titleLabel.font = [UIFont systemFontOfSize:18];
_titleLabel.textColor = [UIColor whiteColor];
_titleLabel.textColor = [ThemeColor mainTextColor];
_titleLabel.text = @"+86";
}
return _titleLabel;
@@ -83,11 +91,11 @@
- (UITextField *)textField {
if (!_textField) {
_textField = [[UITextField alloc] init];
_textField.textColor = [UIColor whiteColor];
_textField.textColor = [ThemeColor mainTextColor];
_textField.font = [UIFont systemFontOfSize:18.f];
_textField.borderStyle = UITextBorderStyleNone;
_textField.keyboardType = UIKeyboardTypeNumberPad;
_textField.tintColor = ThemeDefaultColor;
_textField.tintColor = [ThemeColor appMainColor];
_textField.backgroundColor = [UIColor clearColor];
_textField.delegate = self;
}