Enables a custom crop rect for UIImagePickerController
Objective-C Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits ahead, 24 commits behind gekitz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
GKClasses
GKImagePicker.xcodeproj
GKImagePicker
GKImages
.gitignore
GKImagePicker.podspec
README.md
license

README.md

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

License

Under MIT. See license file for details.