大鹅开黑的UI

This commit is contained in:
fengshuo
2021-12-17 19:31:26 +08:00
parent f7f6df70bf
commit dddb549ae0
118 changed files with 736 additions and 339 deletions

View File

@@ -12,6 +12,7 @@
///Tool
#import "UIImage+Utils.h"
#import "ThemeColor.h"
#import "XPMacro.h"
///Presenter
#import "LoginPasswordPresent.h"
#import "LoginPasswordProtocol.h"
@@ -33,10 +34,16 @@
@property (nonatomic,strong) UIButton *forgetPasswordButton;
///
@property (nonatomic,strong) UIButton *nextButton;
///
@property (nonatomic,strong) UIButton *backButton;
@end
@implementation LoginPasswordViewController
- (BOOL)isHiddenNavBar {
return YES;
}
- (LoginPasswordPresent *)createPresenter {
return [[LoginPasswordPresent alloc] init];
}
@@ -54,6 +61,7 @@
#pragma mark - Private Method
- (void)initSubViews {
[self.view addSubview:self.backButton];
[self.view addSubview:self.codeLoginButton];
[self.view addSubview:self.phoneLable];
[self.view addSubview:self.phoneView];
@@ -63,6 +71,12 @@
}
- (void)initSubViewConstraints {
[self.backButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(self.view).mas_offset(10);
make.top.mas_equalTo(statusbarHeight);
make.height.width.mas_equalTo(44);
}];
[self.codeLoginButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(self.view).offset(-15);
make.bottom.mas_equalTo(self.phoneLable.mas_top).offset(-30);
@@ -70,7 +84,7 @@
[self.phoneLable mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.mas_equalTo(self.view);
make.top.mas_equalTo(self.view).offset(75);
make.top.mas_equalTo(self.view).offset(75 + kNavigationHeight);
}];
[self.phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -136,6 +150,9 @@
[self.navigationController popViewControllerAnimated:YES];
}
- (void)backButtonClick {
[self.navigationController popViewControllerAnimated:YES];
}
#pragma mark - Getters And Setters
- (UIButton *)nextButton {
if (!_nextButton) {
@@ -220,5 +237,13 @@
return _codeView;
}
- (UIButton *)backButton {
if (!_backButton) {
_backButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_backButton setImage:[UIImage imageNamed:@"common_nav_back"] forState:UIControlStateNormal];
[_backButton addTarget:self action:@selector(backButtonClick) forControlEvents:UIControlEventTouchUpInside];
}
return _backButton;
}
@end