Latest 0.0.3
Homepage https://github.com/quaddef/QDImageCropper
License MIT
Platforms ios 6.0, requires ARC

QDImageCropper

Installation

pod 'QDImageCropper', '~> 0.0.3'

How to use

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];

Info

You can set X-axis frame offset and overlay color by editing properties in QDImageCropper.
iOS 6.0

Licence

QDImageCropper is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "QDImageCropper",
    "version": "0.0.3",
    "license": "MIT",
    "summary": "A simple library for cropping images",
    "homepage": "https://github.com/quaddef/QDImageCropper",
    "authors": "quaddef",
    "social_media_url": "https://twitter.com/quaddef",
    "source": {
        "git": "https://github.com/quaddef/QDImageCropper.git",
        "tag": "0.0.3"
    },
    "source_files": "Classes/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "6.0"
    }
}

Pin It on Pinterest

Share This