itouch2/PhotoTweaks · GitHub

1,193 阅读1分钟
原文链接: github.com

PhotoTweaks is an interface to crop photos. It can let user drag, rotate, scale the image, and crop it. You will find it mimics the interaction of Photos.app on iOS 8. :]

Build Status

Usage

PhotoTweaksViewController offers all the operations to crop the photo, which includes translation, rotate and scale..

To use it,

UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
PhotoTweaksViewController *photoTweaksViewController = [[PhotoTweaksViewController alloc] initWithImage:image];
photoTweaksViewController.delegate = self;
[picker pushViewController:photoTweaksViewController animated:YES];

Get the cropped image

- (void)finishWithCroppedImage:(UIImage *)croppedImage
{
    // cropped image
}

A Quick Peek

screenshots