From 3715cea1e6bab831d592a358a1ba86708b39ee8a Mon Sep 17 00:00:00 2001 From: wangzhaoyao Date: Thu, 5 Jan 2023 21:06:07 +0800 Subject: [PATCH] 1.update --- ios/Classes/Utils/MopShareView.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ios/Classes/Utils/MopShareView.m b/ios/Classes/Utils/MopShareView.m index e323360..fe55b73 100644 --- a/ios/Classes/Utils/MopShareView.m +++ b/ios/Classes/Utils/MopShareView.m @@ -74,13 +74,15 @@ returnInsets = inset;\ UILabel *descLabel = [[UILabel alloc] init]; descLabel.frame = CGRectMake(14, bottomY + 12, 168, 21); descLabel.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:15]; + descLabel.textAlignment = NSTextAlignmentLeft; descLabel.textColor = [MOPTools fat_dynamicColorWithLightHexString:@"#222222" darkHexString:@"#222222"]; self.titleLabel = descLabel; [self.shareView addSubview:descLabel]; UILabel *detailLabel = [[UILabel alloc] init]; - detailLabel.frame = CGRectMake(14, self.titleLabel.frame.size.height + self.titleLabel.frame.origin.y, 168, 44); + detailLabel.frame = CGRectMake(14, self.titleLabel.frame.size.height + self.titleLabel.frame.origin.y - 3, 168, 44); detailLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:11]; + detailLabel.textAlignment = NSTextAlignmentLeft; detailLabel.numberOfLines = 0; detailLabel.textColor = [MOPTools fat_dynamicColorWithLightHexString:@"#666666" darkHexString:@"#666666"]; self.descLabel = detailLabel; @@ -128,6 +130,12 @@ returnInsets = inset;\ maskLayer.path = maskPath.CGPath; self.contentView.layer.mask = maskLayer; + UIBezierPath *appletImageViewMask = [UIBezierPath bezierPathWithRoundedRect:self.appletImageView.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(6.0, 6.0)]; + CAShapeLayer *appletImageMaskLayer = [[CAShapeLayer alloc] init]; + appletImageMaskLayer.frame = self.appletImageView.bounds; + 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)];