iOS照片裁剪器:PhotoTweaks
cwf8
10年前
一个照片裁剪器,支持照片的旋转,放大,与任意区域的拖拽裁剪。模仿iOS8系统自带的图片裁剪界面。
用法
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 }