1.修复没有居中的问题

master
wangzhaoyao 2023-01-11 17:17:27 +08:00
parent 80c3a496b3
commit 690b7aa870
1 changed files with 3 additions and 3 deletions

View File

@ -136,9 +136,9 @@ returnInsets = inset;\
appletImageMaskLayer.path = appletImageViewMask.CGPath; appletImageMaskLayer.path = appletImageViewMask.CGPath;
self.appletImageView.layer.mask = appletImageMaskLayer; self.appletImageView.layer.mask = appletImageMaskLayer;
self.shareView.frame = CGRectMake(52.5, self.contentView.frame.origin.y - 400 , 270 , 380); 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(278.5, self.shareView.frame.origin.y + 12, 36, 36)]; UIButton *saveButton = [[UIButton alloc] initWithFrame:CGRectMake(leftCoordinate, self.shareView.frame.origin.y + 12, 36, 36)];
[saveButton addTarget:self action:@selector(saveOnClick) forControlEvents:UIControlEventTouchUpInside]; [saveButton addTarget:self action:@selector(saveOnClick) forControlEvents:UIControlEventTouchUpInside];
[saveButton setImage:[UIImage imageNamed:@"share_download"] forState:UIControlStateNormal]; [saveButton setImage:[UIImage imageNamed:@"share_download"] forState:UIControlStateNormal];
[self addSubview:saveButton]; [self addSubview:saveButton];