Skip to content

Commit c5c4b0d

Browse files
authored
Merge pull request banchichen#1356 from yixiaojichunqiu/master
避免_cropView和_cropBgView可能出现不一致
2 parents 97e38d9 + 8d6c788 commit c5c4b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TZImagePickerController/TZImagePickerController/TZImageCropManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ + (void)overlayClippingWithView:(UIView *)view cropRect:(CGRect)cropRect contain
1919
UIBezierPath *path= [UIBezierPath bezierPathWithRect:[UIScreen mainScreen].bounds];
2020
CAShapeLayer *layer = [CAShapeLayer layer];
2121
if (needCircleCrop) { // 圆形裁剪框
22-
[path appendPath:[UIBezierPath bezierPathWithArcCenter:containerView.center radius:cropRect.size.width / 2 startAngle:0 endAngle: 2 * M_PI clockwise:NO]];
22+
[path appendPath:[UIBezierPath bezierPathWithRoundedRect:cropRect cornerRadius:cropRect.size.width / 2]];
2323
} else { // 矩形裁剪框
2424
[path appendPath:[UIBezierPath bezierPathWithRect:cropRect]];
2525
}

0 commit comments

Comments
 (0)