Skip to content

Commit 119f57e

Browse files
committed
登录页“去注册”三字与注册页面“手机注册”字到边距离一样
1 parent 5260207 commit 119f57e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Coding_iOS/Controllers/Login/LoginViewController.m

+4-3
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ - (UIView *)customFooterView{
348348
#pragma mark BottomView
349349
- (void)configBottomView{
350350
if (!_bottomView) {
351-
_bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, kScreen_Height - 60, kScreen_Width, 60)];
351+
_bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, kScreen_Height - 55, kScreen_Width, 55)];
352352
_bottomView.backgroundColor = [UIColor clearColor];
353353
UIButton *registerBtn = ({
354354
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
@@ -359,8 +359,9 @@ - (void)configBottomView{
359359
[button setTitle:@"去注册" forState:UIControlStateNormal];
360360
[_bottomView addSubview:button];
361361
[button mas_makeConstraints:^(MASConstraintMaker *make) {
362-
make.size.mas_equalTo(CGSizeMake(100, 300));
363-
make.center.equalTo(_bottomView);
362+
make.size.mas_equalTo(CGSizeMake(100, 30));
363+
make.centerX.equalTo(_bottomView);
364+
make.top.equalTo(_bottomView);
364365
}];
365366
button;
366367
});

0 commit comments

Comments
 (0)