Skip to content

Commit

Permalink
[Sources] [RSKImageCropViewControllerDelegate] All methods except `im…
Browse files Browse the repository at this point in the history
…ageCropViewController:willCropImage:` are required now.
  • Loading branch information
ruslanskorb committed Nov 29, 2017
1 parent c088cce commit b5b5406
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions RSKImageCropper/RSKImageCropViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,23 +317,22 @@ typedef NS_ENUM(NSUInteger, RSKImageCropMode) {
*/
@protocol RSKImageCropViewControllerDelegate <NSObject>

@optional

/**
Tells the delegate that crop image has been canceled.
*/
- (void)imageCropViewControllerDidCancelCrop:(RSKImageCropViewController *)controller;

/**
Tells the delegate that the original image will be cropped.
Tells the delegate that the original image has been cropped. Additionally provides a crop rect and a rotation angle used to produce image.
*/
- (void)imageCropViewController:(RSKImageCropViewController *)controller willCropImage:(UIImage *)originalImage;
- (void)imageCropViewController:(RSKImageCropViewController *)controller didCropImage:(UIImage *)croppedImage usingCropRect:(CGRect)cropRect rotationAngle:(CGFloat)rotationAngle;

@optional

/**
Tells the delegate that the original image has been cropped. Additionally provides a crop rect and a rotation angle used to produce image.
Tells the delegate that the original image will be cropped.
*/
- (void)imageCropViewController:(RSKImageCropViewController *)controller didCropImage:(UIImage *)croppedImage usingCropRect:(CGRect)cropRect rotationAngle:(CGFloat)rotationAngle;
- (void)imageCropViewController:(RSKImageCropViewController *)controller willCropImage:(UIImage *)originalImage;

@end

Expand Down

0 comments on commit b5b5406

Please sign in to comment.