80 lines
3.0 KiB
Objective-C
80 lines
3.0 KiB
Objective-C
//
|
|
// PassWordResetVC.m
|
|
// GIGA
|
|
//
|
|
// Created by lianxiang on 2018/8/21.
|
|
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
|
//
|
|
|
|
#import "PassWordResetVC.h"
|
|
|
|
@interface PassWordResetVC ()
|
|
@property (weak, nonatomic) IBOutlet UITextField *phoneNumberTextField;
|
|
@property (weak, nonatomic) IBOutlet UITextField *codeTextField;
|
|
@property (weak, nonatomic) IBOutlet UIButton *codeSendBtn;
|
|
|
|
@property (weak, nonatomic) IBOutlet UITextField *passNewTextField;
|
|
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
|
|
|
|
@end
|
|
|
|
@implementation PassWordResetVC
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
self.title = @"重置密码";
|
|
// Do any additional setup after loading the view from its nib.
|
|
[self confirmUI];
|
|
}
|
|
|
|
-(void)confirmUI{
|
|
|
|
[self.phoneNumberTextField setValue:[UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1] forKey:@"_placeholderLabel.textColor"];
|
|
UIView *phoneView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
|
|
phoneView.backgroundColor = [UIColor redColor];
|
|
UIImageView *phoneIcon = [[UIImageView alloc] initWithFrame:CGRectMake(15, 5, 16, 18)];
|
|
phoneIcon.image = [UIImage imageNamed:@""];
|
|
[phoneView addSubview:phoneIcon];
|
|
self.phoneNumberTextField.leftView = phoneView;
|
|
self.phoneNumberTextField.leftViewMode = UITextFieldViewModeAlways;
|
|
|
|
[self.codeTextField setValue:[UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1] forKey:@"_placeholderLabel.textColor"];
|
|
UIView *codeView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
|
|
codeView.backgroundColor = [UIColor redColor];
|
|
UIImageView *codeIcon = [[UIImageView alloc] initWithFrame:CGRectMake(15, 5, 16, 18)];
|
|
codeIcon.image = [UIImage imageNamed:@""];
|
|
[codeView addSubview:codeIcon];
|
|
self.codeTextField.leftView = codeView;
|
|
self.codeTextField.leftViewMode = UITextFieldViewModeAlways;
|
|
|
|
[self.passNewTextField setValue:[UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1] forKey:@"_placeholderLabel.textColor"];
|
|
UIView *passView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
|
|
passView.backgroundColor = [UIColor redColor];
|
|
UIImageView *passIcon = [[UIImageView alloc] initWithFrame:CGRectMake(15, 5, 16, 18)];
|
|
passIcon.image = [UIImage imageNamed:@""];
|
|
[passView addSubview:passIcon];
|
|
self.passNewTextField.leftView = passView;
|
|
self.passNewTextField.leftViewMode = UITextFieldViewModeAlways;
|
|
|
|
self.confirmBtn.layer.masksToBounds = YES;
|
|
self.confirmBtn.layer.cornerRadius = self.confirmBtn.frame.size.height / 2;
|
|
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
[super didReceiveMemoryWarning];
|
|
// Dispose of any resources that can be recreated.
|
|
}
|
|
|
|
/*
|
|
#pragma mark - Navigation
|
|
|
|
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
|
// Get the new view controller using [segue destinationViewController].
|
|
// Pass the selected object to the new view controller.
|
|
}
|
|
*/
|
|
|
|
@end
|