英文适配
This commit is contained in:
@@ -37,6 +37,7 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
|
||||
@property(nonatomic,strong) UIImageView *logoView;
|
||||
/// 一键登录
|
||||
@property (nonatomic, strong) UIButton *quickLoginBtn;
|
||||
@property(nonatomic,strong) UIImageView *quickArrowView;
|
||||
/// 同意按钮
|
||||
@property (nonatomic, strong) UIButton *agreeBtn;
|
||||
/// 协议隐私政策
|
||||
@@ -97,6 +98,7 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
|
||||
[self.view addSubview:self.logoView];
|
||||
[self.view addSubview:self.stackView];
|
||||
[self.view addSubview:self.quickLoginBtn];
|
||||
[self.view addSubview:self.quickArrowView];
|
||||
[self.view addSubview:self.protocolLabel];
|
||||
[self.view addSubview:self.agreeBtn];
|
||||
|
||||
@@ -142,13 +144,17 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
|
||||
}];
|
||||
|
||||
|
||||
|
||||
|
||||
[self.quickLoginBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerX.equalTo(self.view);
|
||||
make.height.mas_equalTo(kGetScaleWidth(22));
|
||||
make.width.mas_equalTo(kGetScaleWidth(140));
|
||||
make.top.equalTo(self.stackView.mas_bottom).mas_offset(kGetScaleWidth(18));
|
||||
}];
|
||||
[self.quickArrowView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.leading.equalTo(self.quickLoginBtn.mas_trailing).mas_offset(kGetScaleWidth(2));
|
||||
make.centerY.equalTo(self.quickLoginBtn);
|
||||
make.width.height.mas_equalTo(kGetScaleWidth(10));
|
||||
}];
|
||||
[self.protocolLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerX.mas_equalTo(self.view).offset(10);
|
||||
make.right.mas_lessThanOrEqualTo(-10);
|
||||
@@ -333,14 +339,17 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
|
||||
[_quickLoginBtn setTitle:YMLocalizedString(@"XPLoginViewController16") forState:UIControlStateNormal];
|
||||
_quickLoginBtn.titleLabel.font = kFontRegular(14);
|
||||
[_quickLoginBtn setTitleColor:UIColorFromRGB(0x1F1B4F) forState:UIControlStateNormal];
|
||||
|
||||
[_quickLoginBtn setImage:[UIImage imageNamed:@"login_phone_white"] forState:UIControlStateNormal];
|
||||
[_quickLoginBtn setImageEdgeInsets:UIEdgeInsetsMake(0, kGetScaleWidth(130), 0, 0)];
|
||||
[_quickLoginBtn addTarget:self action:@selector(quickLoginBtnClicked) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _quickLoginBtn;
|
||||
}
|
||||
|
||||
- (UIImageView *)quickArrowView{
|
||||
if(!_quickArrowView){
|
||||
_quickArrowView = [UIImageView new];
|
||||
_quickArrowView.image = kImage(@"login_phone_white");
|
||||
}
|
||||
return _quickArrowView;
|
||||
}
|
||||
- (UIButton *)agreeBtn {
|
||||
if(!_agreeBtn) {
|
||||
_agreeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
|
Reference in New Issue
Block a user