master
wangzhaoyao 2023-01-05 21:06:07 +08:00
parent 49ca6becdf
commit 3715cea1e6
1 changed files with 9 additions and 1 deletions

View File

@ -74,13 +74,15 @@ returnInsets = inset;\
UILabel *descLabel = [[UILabel alloc] init]; UILabel *descLabel = [[UILabel alloc] init];
descLabel.frame = CGRectMake(14, bottomY + 12, 168, 21); descLabel.frame = CGRectMake(14, bottomY + 12, 168, 21);
descLabel.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:15]; descLabel.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:15];
descLabel.textAlignment = NSTextAlignmentLeft;
descLabel.textColor = [MOPTools fat_dynamicColorWithLightHexString:@"#222222" darkHexString:@"#222222"]; descLabel.textColor = [MOPTools fat_dynamicColorWithLightHexString:@"#222222" darkHexString:@"#222222"];
self.titleLabel = descLabel; self.titleLabel = descLabel;
[self.shareView addSubview:descLabel]; [self.shareView addSubview:descLabel];
UILabel *detailLabel = [[UILabel alloc] init]; 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.font = [UIFont fontWithName:@"PingFangSC-Regular" size:11];
detailLabel.textAlignment = NSTextAlignmentLeft;
detailLabel.numberOfLines = 0; detailLabel.numberOfLines = 0;
detailLabel.textColor = [MOPTools fat_dynamicColorWithLightHexString:@"#666666" darkHexString:@"#666666"]; detailLabel.textColor = [MOPTools fat_dynamicColorWithLightHexString:@"#666666" darkHexString:@"#666666"];
self.descLabel = detailLabel; self.descLabel = detailLabel;
@ -128,6 +130,12 @@ returnInsets = inset;\
maskLayer.path = maskPath.CGPath; maskLayer.path = maskPath.CGPath;
self.contentView.layer.mask = maskLayer; 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); 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)]; UIButton *saveButton = [[UIButton alloc] initWithFrame:CGRectMake(278.5, self.shareView.frame.origin.y + 12, 36, 36)];