TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
pod 'QDImageCropper', '~> 0.0.3'
QDImageCropper *cropper = [[QDImageCropper alloc] initWithImage:img
resultImageSize:CGSizeMake(100.0, 100.0)
completion:^(UIImage *image, CGRect rect, UIImage *croppedImage) {
//image — real image
//rect — real chosen image rect
//cropped image — cropped image (100x100)
}];
UINavigationController *navContr = [[UINavigationController alloc] initWithRootViewController:cropper];
[self presentViewController:navContr animated:YES completion:nil];
You can set X-axis frame offset and overlay color by editing properties in QDImageCropper. iOS 6.0
QDImageCropper is available under the MIT license. See the LICENSE file for more info.