Skip to content

npmrtsv/QDImageCropper

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published