From 690b7aa87028e69b6fa3599ee41c47d5dae4c072 Mon Sep 17 00:00:00 2001 From: wangzhaoyao Date: Wed, 11 Jan 2023 17:17:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E5=B1=85?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Utils/MopShareView.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Classes/Utils/MopShareView.m b/ios/Classes/Utils/MopShareView.m index 946850a..97153cc 100644 --- a/ios/Classes/Utils/MopShareView.m +++ b/ios/Classes/Utils/MopShareView.m @@ -136,9 +136,9 @@ returnInsets = inset;\ appletImageMaskLayer.path = appletImageViewMask.CGPath; self.appletImageView.layer.mask = appletImageMaskLayer; - self.shareView.frame = CGRectMake(52.5, self.contentView.frame.origin.y - 400 , 270 , 380); - - UIButton *saveButton = [[UIButton alloc] initWithFrame:CGRectMake(278.5, self.shareView.frame.origin.y + 12, 36, 36)]; + self.shareView.frame = CGRectMake((self.frame.size.width - 270) / 2, self.contentView.frame.origin.y - 400 , 270 , 380); + float leftCoordinate = (self.shareView.frame.size.width + self.shareView.frame.origin.x) - 36 - 12; + UIButton *saveButton = [[UIButton alloc] initWithFrame:CGRectMake(leftCoordinate, self.shareView.frame.origin.y + 12, 36, 36)]; [saveButton addTarget:self action:@selector(saveOnClick) forControlEvents:UIControlEventTouchUpInside]; [saveButton setImage:[UIImage imageNamed:@"share_download"] forState:UIControlStateNormal]; [self addSubview:saveButton];