Latest 0.0.1
Homepage https://github.com/gekitz/GKImagePicker
License MIT
Platforms ios 5.0, requires ARC
Frameworks UIKit
Authors

GKImagePicker

Ever wanted a custom crop area for the UIImagePickerController? Now you can have it with GKImagePicker. Just set your custom crop area and that’s it. Just 4 lines of code. If you don’t set it, it uses the same crop area as the default UIImagePickerController.

How to use it

  • just drag and drop the files in under "GKClasses" & "GKImages" into your project.
  • look at the sample code below.
  • this project contains a sample project as well, just have a look at the implementation of ViewController.m
  • have fun and follow @gekitz.

Sample Code

self.imagePicker = [[GKImagePicker alloc] init];
self.imagePicker.cropSize = CGSizeMake(320, 90);
self.imagePicker.delegate = self;

 [self presentModalViewController:self.imagePicker.imagePickerController animated:YES];

This code results into the following controller + crop area:

Sample Crop Image

It’s even possible to let the user adjust the crop area (thanks to @pathonhauser for this pull request) by setting one additional property:

self.imagePicker.resizeableCropArea = YES;

This code results into the following controller + adjustable crop area:
Sample Crop Image Adjustable

License

Under MIT. See license file for details.

Latest podspec

{
    "name": "GKImagePicker",
    "version": "0.0.1",
    "license": "MIT",
    "platforms": {
        "ios": "5.0"
    },
    "summary": "Image Picker with support for custom crop areas.",
    "description": "Ever wanted a custom crop area for the UIImagePickerController?Now you can have it with GKImagePicker. Just set your customcrop area and thats it. Just 4 lines of code. If you dontset it it uses the same crop area as the defaultUIImagePickerController.",
    "homepage": "https://github.com/gekitz/GKImagePicker",
    "authors": {
        "Georg Kitz": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gekitz/GKImagePicker.git",
        "commit": "01847cdec21f870b7cdadfae51342990e2a238df"
    },
    "resources": "GKImages/*.png",
    "source_files": "GKClasses/*.{h,m}",
    "preserve_paths": [
        "GKClasses",
        "GKImages"
    ],
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This