正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -836,7 +836,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options | @@ -836,7 +836,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options | ||
| 836 | // Returns a custom path for the mask. | 836 | // Returns a custom path for the mask. |
| 837 | - (UIBezierPath *)imageCropViewControllerCustomMaskPath: | 837 | - (UIBezierPath *)imageCropViewControllerCustomMaskPath: |
| 838 | (RSKImageCropViewController *)controller { | 838 | (RSKImageCropViewController *)controller { |
| 839 | - CGRect rect = [self scaleRect:controller]; | 839 | + CGRect rect = controller.maskRect; |
| 840 | UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect | 840 | UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect |
| 841 | byRoundingCorners:UIRectCornerAllCorners | 841 | byRoundingCorners:UIRectCornerAllCorners |
| 842 | cornerRadii:CGSizeMake(0, 0)]; | 842 | cornerRadii:CGSizeMake(0, 0)]; |
| @@ -846,7 +846,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options | @@ -846,7 +846,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options | ||
| 846 | // Returns a custom rect in which the image can be moved. | 846 | // Returns a custom rect in which the image can be moved. |
| 847 | - (CGRect)imageCropViewControllerCustomMovementRect: | 847 | - (CGRect)imageCropViewControllerCustomMovementRect: |
| 848 | (RSKImageCropViewController *)controller { | 848 | (RSKImageCropViewController *)controller { |
| 849 | - return [self scaleRect:controller]; | 849 | + return controller.maskRect; |
| 850 | } | 850 | } |
| 851 | 851 | ||
| 852 | #pragma mark - CropFinishDelegate | 852 | #pragma mark - CropFinishDelegate |
-
请 注册 或 登录 后发表评论