|
|
@@ -193,7 +193,7 @@
|
|
|
make.height.mas_equalTo(15);
|
|
|
}];
|
|
|
|
|
|
-
|
|
|
+ CGFloat shareButW = (SCREEN_W - 20 -20 -15)/2.0;
|
|
|
|
|
|
_cancelShareLinkButton = [[UIButton alloc] init];
|
|
|
[_cancelShareLinkButton setTitle:NSLocalizedString(@"cancel_share_title",nil) forState:UIControlStateNormal];
|
|
|
@@ -207,15 +207,15 @@
|
|
|
_cancelShareLinkButton.backgroundColor = [UIColor hwColor:@"#E3E8F1"];
|
|
|
|
|
|
[_cancelShareLinkButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.mas_equalTo(15);
|
|
|
- make.width.mas_equalTo(130);
|
|
|
+ make.left.mas_equalTo(20);
|
|
|
+ make.width.mas_equalTo(shareButW);
|
|
|
make.top.equalTo(_whiteBgView.mas_bottom).offset(25);
|
|
|
make.height.mas_equalTo(48);
|
|
|
}];
|
|
|
|
|
|
|
|
|
_shareLinkCopyButton = [[UIButton alloc] init];
|
|
|
- CGFloat w_btn = SCREEN_W-130 -15 -10 -15;
|
|
|
+ CGFloat w_btn = shareButW;//SCREEN_W-130 -15 -10 -15;
|
|
|
|
|
|
// gradient
|
|
|
CAGradientLayer *gl = [CAGradientLayer layer];
|
|
|
@@ -237,7 +237,7 @@
|
|
|
[self.view addSubview:_shareLinkCopyButton];
|
|
|
|
|
|
[_shareLinkCopyButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.right.mas_equalTo(-15);
|
|
|
+ make.right.mas_equalTo(-20);
|
|
|
make.width.mas_equalTo(w_btn);
|
|
|
make.top.equalTo(_whiteBgView.mas_bottom).offset(25);
|
|
|
make.height.mas_equalTo(48);
|