An alternative to the UIImagePickerController editor with extended features.
UzysImageCropper features:
- You can crop image to exact size which you assign
- Support rotate, scale, move, restore action.
- Support Both ARC and non-ARC Project
Copy over the files libary folder to your project folder
Import header.
#import "UzysImageCropperViewController.h"
@interface ViewController : UIViewController <UzysImageCropperDelegate>
@end
Simply define CropviewController View size and cropImage size.
_imgCropperViewController = [[UzysImageCropperViewController alloc] initWithImage:[UIImage imageNamed:@"Hyuna.jpg"]
andframeSize:[UIScreen mainScreen].bounds.size
andcropSize:CGSizeMake(1024, 580)];
_imgCropperViewController.delegate = self;
_imgCropperViewController.modalPresentationStyle = UIModalPresentationFullScreen;
###Delegate
- (void)imageCropper:(UzysImageCropperViewController *)cropper didFinishCroppingWithImage:(UIImage *)image {
//Save Image here
[self dismissModalViewControllerAnimated:YES];
}
- (void)imageCropperDidCancel:(UzysImageCropperViewController *)cropper {
[self dismissModalViewControllerAnimated:YES];
}
See LICENSE.